Commit 02336bbc authored by Rusty Russell's avatar Rusty Russell

Joey's template fixes.

parent 503dbd59
......@@ -97,9 +97,9 @@ static void handle_no_tests(struct manifest *m, void *check_result)
fputs("#include \"tap/tap.h\"\n", run);
fputs("\n", run);
fputs("int main(int argc, char *argv[])\n", run);
fputs("int main(void)\n", run);
fputs("{\n", run);
fputs("\t/* This is how many tests you plan to run\n", run);
fputs("\t/* This is how many tests you plan to run */\n", run);
fputs("\tplan_tests(3);\n", run);
fputs("\n", run);
fputs("\t/* Simple thing we expect to succeed */\n", run);
......@@ -116,7 +116,8 @@ static void handle_no_tests(struct manifest *m, void *check_result)
fputs("#endif\n", run);
fputs("\n", run);
fputs("\t/* This exits depending on whether all tests passed */\n", run);
fputs("\return exit_status()\n", run);
fputs("\treturn exit_status();\n", run);
fputs("}\n", run);
fclose(run);
}
......
......@@ -40,7 +40,7 @@ static const char template[] =
" */\n"
"int main(int argc, char *argv[])\n"
"{\n"
" /* Expect exactly one argument\n"
" /* Expect exactly one argument */\n"
" if (argc != 2)\n"
" return 1;\n"
"\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment