mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +00:00
sync and try changes
This commit is contained in:
commit
dbd7edba10
811 changed files with 2014 additions and 11694 deletions
|
@ -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"
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue