Starting to move the tests to C.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3652 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-08-19 19:29:37 +00:00
parent be6a39bd15
commit dd90fe4fbf
9 changed files with 154 additions and 102 deletions

View File

@ -1,6 +1,7 @@
#include "ssb.h"
#include "task.h"
#include "taskstub.h"
#include "tests.h"
#include <quickjs-libc.h>
#include <quickjs.h>
@ -137,7 +138,7 @@ static int _tf_command_test(const char* file, int argc, char* argv[])
return 2;
}
tf_ssb_test();
tf_tests(file);
return 0;
xopt_help:
if (extras) {
@ -434,6 +435,7 @@ static int _tf_command_usage(const char* file, int argc, char* argv[])
int main(int argc, char* argv[])
{
prctl(PR_SET_PDEATHSIG, SIGKILL);
uv_setup_args(argc, argv);
tf_taskstub_startup();