mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
Workaround WSL not supporting x87 in ucontext_t
This commit is contained in:
parent
d6ff4c754e
commit
fae0c0286f
8 changed files with 13 additions and 11 deletions
|
@ -325,10 +325,13 @@ TEST(ShowCrashReports, testDivideByZero) {
|
|||
_gc(IndentLines(output, -1, 0, 4)));
|
||||
__die();
|
||||
}
|
||||
if (!strstr(output, "3.141")) {
|
||||
fprintf(stderr, "ERROR: crash report didn't have fpu register\n%s\n",
|
||||
_gc(IndentLines(output, -1, 0, 4)));
|
||||
__die();
|
||||
// XXX: WSL doesn't save and restore x87 registers to ucontext_t
|
||||
if (!__is_wsl()) {
|
||||
if (!strstr(output, "3.141")) {
|
||||
fprintf(stderr, "ERROR: crash report didn't have fpu register\n%s\n",
|
||||
_gc(IndentLines(output, -1, 0, 4)));
|
||||
__die();
|
||||
}
|
||||
}
|
||||
if (!strstr(output, "0f0e0d0c0b0a09080706050403020100")) {
|
||||
fprintf(stderr, "ERROR: crash report didn't have sse register\n%s\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue