Make more fixes and improvements

This change attempts to fix some report build issues. It also builds
upon development work described in previous changes.
This commit is contained in:
Justine Tunney 2022-04-21 09:15:36 -07:00
parent 9bfa6ec06e
commit 9d61e23c80
27 changed files with 980 additions and 902 deletions

View file

@ -148,19 +148,6 @@ noasan int main(int argc, char *argv[]) {
EmptySignalMask();
ShowCrashReports();
// so the test runner can terminate unknown children without
// accidentally killing parent processes
if (!IsWindows() && weaken(fork)) {
setpgrp();
}
// prevent runaway tests from bombing the computer
cpus = GetCpuCount();
cpus = MAX(4, cpus);
SetLimit(RLIMIT_NOFILE, 32, 128);
SetLimit(RLIMIT_SIGPENDING, 16, 16384);
SetLimit(RLIMIT_NPROC, cpus * 8, 2048);
// now get down to business
g_testlib_shoulddebugbreak = IsDebuggerPresent(false);
if (!IsWindows()) sys_getpid(); // make strace easier to read