Skip to content

Commit

Permalink
add test case for argv[0] without '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Shafer committed Nov 7, 2019
1 parent 5510c85 commit fa498ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/core/test_01.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ main (int argc, char **argv)
{ "sold", "number", "Number of items sold" },
{ XO_INFO_NULL },
};

char name[] = "test_01.test"; /* test trimming of xo_program */
argv[0] = name;

argc = xo_parse_args(argc, argv);
if (argc < 0)
Expand Down

0 comments on commit fa498ae

Please sign in to comment.