Fix --run-tests arg handling

This commit is contained in:
Nicolas Williams committed 2015-01-12 10:43:06 -06:00
1 parent 6e7cf81d74
commit d927a2c185
2 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -419,8 +419,11 @@ int main(int argc, char* argv[]) {
goto out;
}
if (isoption(argv[i], 0, "run-tests", &short_opts)) {
i++;
// XXX Pass program_arguments, even a whole jq_state *, through;
// could be useful for testing
jv_free(program_arguments);
ret = jq_testsuite(lib_search_paths, argc - i, argv + i + 1);
ret = jq_testsuite(lib_search_paths, argc - i, argv + i);
goto out;
}