2019-05-08 23:34:58 +00:00
|
|
|
diff -up ./test/Main_fuzz_test.c.fuzz ./test/Main_fuzz_test.c
|
2020-04-16 00:23:38 +00:00
|
|
|
--- ./test/Main_fuzz_test.c.fuzz 2020-04-09 14:01:51.000000000 -0400
|
|
|
|
+++ ./test/Main_fuzz_test.c 2020-04-14 17:17:24.101260879 -0400
|
|
|
|
@@ -60,8 +60,8 @@ static Iface_DEFUN incomingTun(struct Me
|
2019-05-08 23:34:58 +00:00
|
|
|
static void notLinkedYet(struct Context* ctx)
|
|
|
|
{
|
|
|
|
uint64_t now = Time_currentTimeMilliseconds(ctx->base);
|
|
|
|
- if ((now - ctx->startTime) > 5000) {
|
|
|
|
- Assert_failure("Failed to link in 5 seconds");
|
2020-04-14 21:11:47 +00:00
|
|
|
+ if ((now - ctx->startTime) > 200000) {
|
2019-05-08 23:34:58 +00:00
|
|
|
+ Assert_failure("Failed to link in 100 seconds");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-16 00:23:38 +00:00
|
|
|
diff -up ./util/test/Seccomp_test.c.fuzz ./util/test/Seccomp_test.c
|
|
|
|
--- ./util/test/Seccomp_test.c.fuzz 2020-04-15 20:21:02.563170274 -0400
|
2020-04-16 03:14:25 +00:00
|
|
|
+++ ./util/test/Seccomp_test.c 2020-04-15 22:32:21.633653339 -0400
|
|
|
|
@@ -61,6 +61,10 @@ static void timeout(void* vNULL)
|
|
|
|
{
|
|
|
|
Assert_true(!"timed out");
|
|
|
|
}
|
|
|
|
+static void timeout2(void* vNULL)
|
|
|
|
+{
|
|
|
|
+ Assert_true(!"time out 2");
|
|
|
|
+}
|
|
|
|
|
|
|
|
static int child(char* pipeName, struct Allocator* alloc, struct Log* logger)
|
|
|
|
{
|
|
|
|
@@ -70,7 +74,7 @@ static int child(char* pipeName, struct
|
2020-04-16 00:23:38 +00:00
|
|
|
pipe->logger = logger;
|
|
|
|
pipe->userData = alloc;
|
|
|
|
|
|
|
|
- Timeout_setTimeout(timeout, eb, 2000, eb, alloc);
|
2020-04-16 03:14:25 +00:00
|
|
|
+ Timeout_setTimeout(timeout, eb, 8000, eb, alloc);
|
2020-04-16 00:23:38 +00:00
|
|
|
EventBase_beginLoop(eb);
|
|
|
|
|
|
|
|
return 0;
|
2020-04-16 03:14:25 +00:00
|
|
|
@@ -120,7 +124,7 @@ int main(int argc, char** argv)
|
2020-04-16 00:23:38 +00:00
|
|
|
|
|
|
|
Assert_true(!Process_spawn(path, args, eb, alloc, NULL));
|
|
|
|
|
|
|
|
- Timeout_setTimeout(timeout, NULL, 2000, eb, alloc);
|
2020-04-16 03:14:25 +00:00
|
|
|
+ Timeout_setTimeout(timeout2, NULL, 160000, eb, alloc);
|
2020-04-16 00:23:38 +00:00
|
|
|
|
|
|
|
EventBase_beginLoop(eb);
|
|
|
|
return 0;
|