Skip to content

Commit

Permalink
Merge pull request #159 from mariux64/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
donald authored Jun 2, 2024
2 parents e341309 + 7c3e220 commit cb57c61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions mxqd_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ static int server_is_qualified(struct mxq_server *server, struct mxq_group *grou
return 0; // evaluated to false
}
if (*server->daemon.prerequisites != 0) {
if (*group->tags == 0) {
return 0;
}
_mx_cleanup_(keywordset_free_byref) struct keywordset *kws = keywordset_new(group->tags);
struct parser_context parser_context = {
.input = server->daemon.prerequisites,
Expand Down
2 changes: 1 addition & 1 deletion mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ int main(int argc, char *argv[])
return 1;
}

printf("mxq_group_id=%" PRIu64 " \n", group.group_id);
printf("mxq_group_id=%" PRIu64 "\n", group.group_id);
printf("mxq_group_name=%s\n", group.group_name);
printf("mxq_job_id=%" PRIu64 "\n", job.job_id);

Expand Down
5 changes: 5 additions & 0 deletions test_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ int main() {

keywordset_free(tags);

tags = keywordset_new("x");
test_expression(tags, "bla", 0, 0);
test_expression(tags, "!bla", 0, 1);
keywordset_free(tags);

static char text[8002];
text[8001] = 0;
memset(text, '(', 8000);
Expand Down

0 comments on commit cb57c61

Please sign in to comment.