qa: various fixes

This commit is contained in:
Giacomo Tesio 2020-08-29 02:47:47 +02:00
parent 72af45032e
commit f535d68985
3 changed files with 10 additions and 24 deletions

View File

@ -112,7 +112,7 @@ waiter(int index)
if(verbose) if(verbose)
print("writer %d: got the wlock in %lld ms\n", getpid(), (end - start) / (1000*1000)); print("writer %d: got the wlock in %lld ms\n", getpid(), (end - start) / (1000*1000));
wunlock(&afterAWhile); 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))); postnote(PNGROUP, getpid(), smprint("fail: writer %d got the wlock after %lld ms", getpid(), (end - start) / (1000*1000)));
} else { } else {
if(verbose) if(verbose)
@ -127,7 +127,7 @@ waiter(int index)
rwakeup(&rCompleted); rwakeup(&rCompleted);
qunlock(&rl); qunlock(&rl);
return (end - start) / (1000*1000) < 1300 ? nil : "FAIL"; return (end - start) / (1000*1000) < 5000 ? nil : "FAIL";
} }
void void

View File

@ -4,19 +4,14 @@
"/arch/$ARCH/include/cflags.json" "/arch/$ARCH/include/cflags.json"
], ],
"Cflags": [ "Cflags": [
"-isystem", "/posix/lib/gcc/x86_64-jehanne/9.2.0/include", "--posixly",
"-fstack-check", "-fstack-check",
"-fstack-protector-all", "-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", "-O2",
"-std=gnu11" "-std=gnu11"
], ],
"Oflags": [ "Oflags": [
"-static", "-static"
"-lposix"
], ],
"Install": "/arch/$ARCH/qa/lib/newlib", "Install": "/arch/$ARCH/qa/lib/newlib",
"Post": [ "Post": [
@ -71,20 +66,15 @@
"/arch/$ARCH/include/cflags.json" "/arch/$ARCH/include/cflags.json"
], ],
"Cflags": [ "Cflags": [
"-isystem", "/posix/lib/gcc/x86_64-jehanne/9.2.0/include", "--posixly",
"-fstack-check", "-fstack-check",
"-fstack-protector-all", "-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", "-O2",
"-DWITH_SIGCHLD", "-DWITH_SIGCHLD",
"-std=gnu11" "-std=gnu11"
], ],
"Oflags": [ "Oflags": [
"-static", "-static"
"-lposix"
], ],
"Install": "/arch/$ARCH/qa/lib/newlib/sigchld", "Install": "/arch/$ARCH/qa/lib/newlib/sigchld",
"Post": [ "Post": [

View File

@ -4,22 +4,17 @@
"/arch/$ARCH/include/cflags.json" "/arch/$ARCH/include/cflags.json"
], ],
"Cflags": [ "Cflags": [
"-isystem", "/posix/lib/gcc/x86_64-jehanne/9.2.0/include", "--posixly",
"-iquote", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/include/", "-iquote", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/include/",
"-fstack-check", "-fstack-check",
"-Wno-unused-variable", "-Wno-unused-variable",
"-Wno-format", "-Wno-format",
"-fstack-protector-all", "-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", "-O2",
"-std=gnu11" "-std=gnu11"
], ],
"Oflags": [ "Oflags": [
"-static", "-static"
"-lposix"
], ],
"Post": [ "Post": [
"mkdir -p $JEHANNE/arch/$ARCH/qa/lib/newlib/testsuite", "mkdir -p $JEHANNE/arch/$ARCH/qa/lib/newlib/testsuite",
@ -28,6 +23,7 @@
"git clean -xdf ." "git clean -xdf ."
], ],
"Pre": [ "Pre": [
"cat $JEHANNE/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.wctype/twctype.c|sed 's/0x0967/0x0905/g' > twctype.c",
"rm -f *.tag.*" "rm -f *.tag.*"
], ],
"SourceFiles": [ "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.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/size_max.c",
"/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.stdlib/atexit.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/tiswctype.c",
"/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.wctype/twctrans.c", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.wctype/twctrans.c",
"/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.search/hsearchtest.c", "/hacking/cross/pkgs/newlib/src/newlib/testsuite/newlib.search/hsearchtest.c",