sync and try changes

This commit is contained in:
Alexander Nicholi 2021-02-04 08:33:22 -05:00
commit dbd7edba10
No known key found for this signature in database
GPG key ID: B75B2EB05540F74C
811 changed files with 2014 additions and 11694 deletions

View file

@ -26,14 +26,15 @@
#include "libc/nt/runtime.h"
#include "libc/runtime/runtime.h"
#include "libc/stdio/stdio.h"
#include "libc/str/str.h"
#include "libc/testlib/testlib.h"
testonly void testlib_showerror(const char *file, int line, const char *func,
const char *method, const char *symbol,
const char *code, char *v1, char *v2) {
/* TODO(jart): Pay off tech debt re duplication */
getpid$sysv(); /* make strace easier to read */
getpid$sysv();
sys_getpid(); /* make strace easier to read */
sys_getpid();
fprintf(stderr,
"%s%s%s%s:%s:%d%s: %s() %s %s(%s)\n"
"\t%s\n"

View file

@ -74,7 +74,7 @@ testonly int main(int argc, char *argv[]) {
GetOpts(argc, argv);
showcrashreports();
g_testlib_shoulddebugbreak = IsDebuggerPresent(false);
getpid$sysv(); /* make strace easier to read */
sys_getpid(); /* make strace easier to read */
testlib_clearxmmregisters();
testlib_runalltests();
if (!g_testlib_failed && runbenchmarks_ && weaken(testlib_runallbenchmarks)) {

View file

@ -77,11 +77,11 @@ testonly void testlib_runtestcases(testfn_t *start, testfn_t *end,
if (weaken(SetUp)) weaken(SetUp)();
errno = 0;
SetLastError(0);
getpid$sysv();
sys_getpid();
if (warmup) warmup();
testlib_clearxmmregisters();
(*fn)();
getpid$sysv();
sys_getpid();
if (weaken(TearDown)) weaken(TearDown)();
if (weaken(testlib_enable_tmp_setup_teardown)) {
CHECK_NE(-1, chdir(cwd));