Make --run-tests less verbose by default
Adding --debug-trace or --debug-dump-disasm before --run-tests now makes it verbose.
This commit is contained in:
1 parent
32c4759e6b
commit
6c89186437
2 files changed
+14
-10
No files matched your search
@@ -24,7 +24,7 @@
|
||||
#include "util.h"
|
||||
#include "version.h"
|
||||
|
||||
int jq_testsuite(jv lib_dirs, int argc, char* argv[]);
|
||||
int jq_testsuite(jv lib_dirs, int verbose, int argc, char* argv[]);
|
||||
|
||||
static const char* progname;
|
||||
|
||||
@@ -409,7 +409,9 @@ int main(int argc, char* argv[]) {
|
||||
i++;
|
||||
// XXX Pass program_arguments, even a whole jq_state *, through;
|
||||
// could be useful for testing
|
||||
ret = jq_testsuite(lib_search_paths, argc - i, argv + i);
|
||||
ret = jq_testsuite(lib_search_paths,
|
||||
(options & DUMP_DISASM) || (jq_flags & JQ_DEBUG_TRACE),
|
||||
argc - i, argv + i);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user