summaryrefslogtreecommitdiffstats
path: root/jq_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'jq_test.c')
-rw-r--r--jq_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/jq_test.c b/jq_test.c
index 8b5ee2c2..cbcbd8f5 100644
--- a/jq_test.c
+++ b/jq_test.c
@@ -10,7 +10,7 @@ static void run_jq_tests();
FILE* testdata;
-int main(int argc, char* argv[]) {
+int jq_testsuite(int argc, char* argv[]) {
jv_test();
if (argc == 1) {
testdata = fopen("testdata", "r");
@@ -26,6 +26,7 @@ int main(int argc, char* argv[]) {
}
run_jq_tests();
if (testdata != stdin) fclose(testdata);
+ return 0;
}