diff options
Diffstat (limited to 'lib/tests/test_opts1.c')
-rw-r--r-- | lib/tests/test_opts1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tests/test_opts1.c b/lib/tests/test_opts1.c index e32115c..984183d 100644 --- a/lib/tests/test_opts1.c +++ b/lib/tests/test_opts1.c | |||
@@ -126,9 +126,11 @@ int main(int argc, char **argv) { | |||
126 | } | 126 | } |
127 | 127 | ||
128 | { | 128 | { |
129 | char *argv_test[] = {"prog_name", "--arg1=val1", "--extra-opts=@./config-opts.ini", "--extra-opts", "sect1@./config-opts.ini", "--arg2", (char *)NULL}; | 129 | char *argv_test[] = {"prog_name", "--arg1=val1", "--extra-opts=@./config-opts.ini", "--extra-opts", "sect1@./config-opts.ini", |
130 | "--arg2", (char *)NULL}; | ||
130 | argc_test = 6; | 131 | argc_test = 6; |
131 | char *argv_known[] = {"prog_name", "--foo=Bar", "--this=Your Mother!", "--blank", "--one=two", "--arg1=val1", "--arg2", (char *)NULL}; | 132 | char *argv_known[] = {"prog_name", "--foo=Bar", "--this=Your Mother!", "--blank", "--one=two", |
133 | "--arg1=val1", "--arg2", (char *)NULL}; | ||
132 | argv_new = np_extra_opts(&argc_test, argv_test, "check_disk"); | 134 | argv_new = np_extra_opts(&argc_test, argv_test, "check_disk"); |
133 | ok(array_diff(argc_test, argv_new, 7, argv_known), "twice extra opts using two sections"); | 135 | ok(array_diff(argc_test, argv_new, 7, argv_known), "twice extra opts using two sections"); |
134 | my_free(&argc_test, argv_new, argv_test); | 136 | my_free(&argc_test, argv_new, argv_test); |