Skip to content

Commit

Permalink
test_mx_util: add test for mx_strvec
Browse files Browse the repository at this point in the history
  • Loading branch information
donald authored and mariux committed Oct 16, 2015
1 parent 905dde3 commit d5e75e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test_mx_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,15 @@ static void test_mx_strscan(void)
mx_proc_pid_stat_free(&pps2);
}

static void test_mx_strvec() {
char **strvec;

strvec=mx_strvec_new();
mx_strvec_push_str(&strvec,strdup("Hallo"));
mx_strvec_push_str(&strvec,strdup("Bla"));
mx_strvec_push_str(&strvec,strdup("lall"));
mx_strvec_free(strvec);
}

int main(int argc, char *argv[])
{
Expand All @@ -372,5 +381,6 @@ int main(int argc, char *argv[])
test_mx_strtobytes();
test_mx_read_first_line_from_file();
test_mx_strscan();
test_mx_strvec();
return 0;
}

0 comments on commit d5e75e2

Please sign in to comment.