From f535d689856babc2beb1b8b4390372a8cadecc4b Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Sat, 29 Aug 2020 02:47:47 +0200 Subject: [PATCH] qa: various fixes --- qa/lib/c/wlockt1.c | 4 ++-- qa/lib/newlib/build.json | 18 ++++-------------- qa/lib/newlib/testsuite/build.json | 12 ++++-------- 3 files changed, 10 insertions(+), 24 deletions(-) diff --git a/qa/lib/c/wlockt1.c b/qa/lib/c/wlockt1.c index c7fa84e..2bae9a0 100644 --- a/qa/lib/c/wlockt1.c +++ b/qa/lib/c/wlockt1.c @@ -112,7 +112,7 @@ waiter(int index) if(verbose) print("writer %d: got the wlock in %lld ms\n", getpid(), (end - start) / (1000*1000)); wunlock(&afterAWhile); - if((end - start) / (1000*1000) > 1300) + if((end - start) / (1000*1000) > 5000) postnote(PNGROUP, getpid(), smprint("fail: writer %d got the wlock after %lld ms", getpid(), (end - start) / (1000*1000))); } else { if(verbose) @@ -127,7 +127,7 @@ waiter(int index) rwakeup(&rCompleted); qunlock(&rl); - return (end - start) / (1000*1000) < 1300 ? nil : "FAIL"; + return (end - start) / (1000*1000) < 5000 ? nil : "FAIL"; } void diff --git a/qa/lib/newlib/build.json b/qa/lib/newlib/build.json index ced3e75..7b3a083 100644 --- a/qa/lib/newlib/build.json +++ b/qa/lib/newlib/build.json @@ -4,19 +4,14 @@ "/arch/$ARCH/include/cflags.json" ], "Cflags": [ - "-isystem", "/posix/lib/gcc/x86_64-jehanne/9.2.0/include", + "--posixly", "-fstack-check", "-fstack-protector-all", - "/pkgs/newlib/x86_64-jehanne/lib/libc.a", - "/pkgs/newlib/x86_64-jehanne/lib/libm.a", - "/pkgs/newlib/x86_64-jehanne/lib/libg.a", - "-I", "/posix/include", "-O2", "-std=gnu11" ], "Oflags": [ - "-static", - "-lposix" + "-static" ], "Install": "/arch/$ARCH/qa/lib/newlib", "Post": [ @@ -71,20 +66,15 @@ "/arch/$ARCH/include/cflags.json" ], "Cflags": [ - "-isystem", "/posix/lib/gcc/x86_64-jehanne/9.2.0/include", + "--posixly", "-fstack-check", "-fstack-protector-all", - "/pkgs/newlib/x86_64-jehanne/lib/libc.a", - "/pkgs/newlib/x86_64-jehanne/lib/libm.a", - "/pkgs/newlib/x86_64-jehanne/lib/libg.a", - "-I", "/posix/include", "-O2", "-DWITH_SIGCHLD", "-std=gnu11" ], "Oflags": [ - "-static", - "-lposix" + "-static" ], "Install": "/arch/$ARCH/qa/lib/newlib/sigchld", "Post": [ diff --git a/qa/lib/newlib/testsuite/build.json b/qa/lib/newlib/testsuite/build.json index 9d06b52..c8f482a 100644 --- a/qa/lib/newlib/testsuite/build.json +++ b/qa/lib/newlib/testsuite/build.json @@ -4,22 +4,17 @@ "/arch/$ARCH/include/cflags.json" ], "Cflags": [ - "-isystem", "/posix/lib/gcc/x86_64-jehanne/9.2.0/include", + "--posixly", "-iquote", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/include/", "-fstack-check", "-Wno-unused-variable", "-Wno-format", "-fstack-protector-all", - "/pkgs/newlib/x86_64-jehanne/lib/libc.a", - "/pkgs/newlib/x86_64-jehanne/lib/libm.a", - "/pkgs/newlib/x86_64-jehanne/lib/libg.a", - "-I", "/posix/include", "-O2", "-std=gnu11" ], "Oflags": [ - "-static", - "-lposix" + "-static" ], "Post": [ "mkdir -p $JEHANNE/arch/$ARCH/qa/lib/newlib/testsuite", @@ -28,6 +23,7 @@ "git clean -xdf ." ], "Pre": [ + "cat $JEHANNE/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.wctype/twctype.c|sed 's/0x0967/0x0905/g' > twctype.c", "rm -f *.tag.*" ], "SourceFiles": [ @@ -40,7 +36,7 @@ "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.string/strcmp-1.c", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.stdlib/size_max.c", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.stdlib/atexit.c", - "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.wctype/twctype.c", + "twctype.c", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.wctype/tiswctype.c", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.wctype/twctrans.c", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.search/hsearchtest.c",