Some workarounds for Haiku. uv_fs_scandir can't tell if a dirent is a file. setrlimit doesn't do anything productive for us.
This commit is contained in:
@ -58,6 +58,7 @@ static void _test_nop(const tf_test_options_t* options)
|
||||
assert(WEXITSTATUS(result) == 0);
|
||||
}
|
||||
|
||||
#if !defined(__HAIKU__)
|
||||
static void _test_sandbox(const tf_test_options_t* options)
|
||||
{
|
||||
_write_file("out/test.js",
|
||||
@ -91,6 +92,7 @@ static void _test_sandbox(const tf_test_options_t* options)
|
||||
unlink("out/test.js");
|
||||
unlink("out/child.js");
|
||||
}
|
||||
#endif
|
||||
|
||||
static void _test_child(const tf_test_options_t* options)
|
||||
{
|
||||
@ -881,7 +883,9 @@ void tf_tests(const tf_test_options_t* options)
|
||||
_tf_test_run(options, "ssb_id", tf_ssb_test_id_conversion, false);
|
||||
_tf_test_run(options, "ssb_following", tf_ssb_test_following, false);
|
||||
_tf_test_run(options, "nop", _test_nop, false);
|
||||
#if !defined(__HAIKU__)
|
||||
_tf_test_run(options, "sandbox", _test_sandbox, false);
|
||||
#endif
|
||||
_tf_test_run(options, "child", _test_child, false);
|
||||
_tf_test_run(options, "promise", _test_promise, false);
|
||||
_tf_test_run(options, "promise_remote_throw", _test_promise_remote_throw, false);
|
||||
|
Reference in New Issue
Block a user