Revert "Remove #[alloc_error_handler] from the compiler and library"
This reverts commit abc0660118
.
This commit is contained in:
parent
33253fa6a4
commit
f54dbe6e31
49 changed files with 842 additions and 22 deletions
|
@ -2,7 +2,7 @@
|
|||
// ignore-emscripten no processes
|
||||
// ignore-sgx no processes
|
||||
|
||||
use std::alloc::{handle_alloc_error, Layout};
|
||||
use std::alloc::{Layout, handle_alloc_error};
|
||||
use std::env;
|
||||
use std::process::Command;
|
||||
use std::str;
|
||||
|
@ -24,5 +24,5 @@ fn main() {
|
|||
.strip_suffix("qemu: uncaught target signal 6 (Aborted) - core dumped\n")
|
||||
.unwrap_or(stderr);
|
||||
|
||||
assert!(stderr.contains("memory allocation of 42 bytes failed"));
|
||||
assert_eq!(stderr, "memory allocation of 42 bytes failed\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue