mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Begin incorporating Python unit tests into build
We now build a separate APE binary for each test so they can run in parallel. We've got 148 tests running fast and stable so far.
This commit is contained in:
parent
51904e2687
commit
b5f743cdc3
121 changed files with 4995 additions and 4767 deletions
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/bits/weaken.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/sigbits.h"
|
||||
#include "libc/calls/struct/sigaction.h"
|
||||
|
@ -187,11 +188,16 @@ relegated static void ShowMemoryMappings(int outfd) {
|
|||
}
|
||||
}
|
||||
|
||||
void ShowCrashReportHook(int, int, int, struct siginfo *, ucontext_t *);
|
||||
|
||||
relegated static void ShowCrashReport(int err, int fd, int sig,
|
||||
struct siginfo *si, ucontext_t *ctx) {
|
||||
int i;
|
||||
char hostname[64];
|
||||
struct utsname names;
|
||||
if (weaken(ShowCrashReportHook)) {
|
||||
ShowCrashReportHook(err, fd, sig, si, ctx);
|
||||
}
|
||||
strcpy(hostname, "unknown");
|
||||
gethostname(hostname, sizeof(hostname));
|
||||
dprintf(fd,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue