aboutsummaryrefslogtreecommitdiff
path: root/contrib/libxo/tests
diff options
context:
space:
mode:
authorPhil Shafer <phil@FreeBSD.org>2019-11-07 18:06:44 +0000
committerPhil Shafer <phil@FreeBSD.org>2019-11-07 18:06:44 +0000
commit67322d1642c186afaa55f77d04ba2cd0eee03adf (patch)
treece5a295993c574239d847bbf7aa3ecbfaf8f5078 /contrib/libxo/tests
parent4ffa494e4ff30e63accf01a4f333941b59aad65a (diff)
parent5fe9672cf6a4e4e6c6bbdb133c9d998f577f88f2 (diff)
Import libxo-1.3.1:
- handle argv[0] without '/' - add test case for argv[0] without '/'
Notes
Notes: svn path=/head/; revision=354455
Diffstat (limited to 'contrib/libxo/tests')
-rw-r--r--contrib/libxo/tests/core/test_01.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/libxo/tests/core/test_01.c b/contrib/libxo/tests/core/test_01.c
index 35dc15df6112..aeeb0c9ca67a 100644
--- a/contrib/libxo/tests/core/test_01.c
+++ b/contrib/libxo/tests/core/test_01.c
@@ -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)