From 5016942e3f4615ac3e6f79ff946be9cff7844cb4 Mon Sep 17 00:00:00 2001 From: phani Date: Tue, 31 Dec 2019 14:00:45 -0500 Subject: [PATCH] work test --- runtime/tests/test_empty.json | 4 ++-- runtime/tests/test_work.json | 4 ++-- runtime/tests/work/main.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/tests/test_empty.json b/runtime/tests/test_empty.json index ef12dbc..44db30a 100644 --- a/runtime/tests/test_empty.json +++ b/runtime/tests/test_empty.json @@ -6,8 +6,8 @@ "argsize" : 1, "http-req-headers" : [ ], "http-req-content-type" : "text/plain", - "http-req-size": 1048576, + "http-req-size": 1024, "http-resp-headers" : [ ], - "http-resp-size" : 1048776, + "http-resp-size" : 1024, "http-resp-content-type" : "text/plain" } diff --git a/runtime/tests/test_work.json b/runtime/tests/test_work.json index bb2c4d9..ee7d258 100644 --- a/runtime/tests/test_work.json +++ b/runtime/tests/test_work.json @@ -6,8 +6,8 @@ "argsize" : 1, "http-req-headers" : [ ], "http-req-content-type" : "text/plain", - "http-req-size": 10485760, + "http-req-size": 1048576, "http-resp-headers" : [ ], - "http-resp-size" : 10487760, + "http-resp-size" : 1048776, "http-resp-content-type" : "text/plain" } diff --git a/runtime/tests/work/main.c b/runtime/tests/work/main.c index b573847..2694657 100644 --- a/runtime/tests/work/main.c +++ b/runtime/tests/work/main.c @@ -3,7 +3,7 @@ #include #define CPU_CYCS 2100 -#define MAX_BUF (1024*1024) //1m +#define MAX_BUF (1024*1024*1) //1m #define ITERS_15US 125500 #define MULTIPLE 5 @@ -34,7 +34,7 @@ main(void) // if (r <= 0) printf("%llu\n", en > st ? (en - st)/CPU_CYCS : -1); if (r < 0) printf("E\n"); - else if (r == 0) printf("hello\n"); + else if (r <= 1) printf("D\n"); else write(1, d, r); return 0;