Fix fix fix tests.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4852 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
12
src/task.c
12
src/task.c
@ -34,6 +34,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define WEXITSTATUS(x) (x)
|
||||
#endif
|
||||
|
||||
#if !defined(__APPLE__) && !defined(__OpenBSD__)
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
@ -2134,8 +2138,12 @@ static JSValue _tf_task_setTimeout(JSContext* context, JSValueConst this_val, in
|
||||
|
||||
static JSValue _tf_task_pokeSandbox(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv)
|
||||
{
|
||||
#if TARGET_OS_IPHONE
|
||||
tf_printf("Not sure what we can try to poke on iOS.\n");
|
||||
#else
|
||||
tf_printf("Poking sandbox.\n");
|
||||
system("pwd");
|
||||
int result = system("pwd");
|
||||
tf_printf("Sandbox poked.\n");
|
||||
return JS_UNDEFINED;
|
||||
#endif
|
||||
return JS_NewInt32(context, WEXITSTATUS(result));
|
||||
}
|
||||
|
Reference in New Issue
Block a user