From d0177d24cb2155e437c2b7e82ba1bd8629e94316 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 4 Aug 2023 23:44:48 +0000 Subject: [PATCH] Clean up some test cruft. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4384 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/tests.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tests.c b/src/tests.c index d7abae16..eaa96d57 100644 --- a/src/tests.c +++ b/src/tests.c @@ -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)