Clean up some test cruft.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4384 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-08-04 23:44:48 +00:00
parent 0573008c9c
commit d0177d24cb

View File

@ -233,10 +233,9 @@ static void _test_database(const tf_test_options_t* options)
"}\n");
fclose(file);
unlink("out/testdb.sqlite");
char command[256];
snprintf(command, sizeof(command), "%s run --ssb-port=0 --db-path=file:db?mode=memory\\&cache=shared -s out/test.js", options->exe_path);
unlink("out/test_db0.sqlite");
snprintf(command, sizeof(command), "%s run --ssb-port=0 --db-path=out/test_db0.sqlite -s out/test.js", options->exe_path);
tf_printf("%s\n", command);
int result = system(command);
tf_printf("returned %d\n", WEXITSTATUS(result));
@ -244,7 +243,7 @@ static void _test_database(const tf_test_options_t* options)
assert(WEXITSTATUS(result) == 0);
unlink("out/test.js");
unlink("out/testdb.sqlite");
unlink("out/test_db0.sqlite");
}
static void _test_this(const tf_test_options_t* options)