From ab82b85324ee6d7feb520462a904f7de071803e4 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Thu, 18 Apr 2024 17:49:07 -0400 Subject: [PATCH] Port stdout-during-shutdown --- tests/ui/runtime/stdout-during-shutdown.rs | 19 ------------------- .../runtime/stdout-during-shutdown.run.stdout | 1 - 2 files changed, 20 deletions(-) delete mode 100644 tests/ui/runtime/stdout-during-shutdown.rs delete mode 100644 tests/ui/runtime/stdout-during-shutdown.run.stdout diff --git a/tests/ui/runtime/stdout-during-shutdown.rs b/tests/ui/runtime/stdout-during-shutdown.rs deleted file mode 100644 index 8549f5d8eb6d9..0000000000000 --- a/tests/ui/runtime/stdout-during-shutdown.rs +++ /dev/null @@ -1,19 +0,0 @@ -//@ run-pass -//@ check-run-results -//@ ignore-emscripten - -// Emscripten doesn't flush its own stdout buffers on exit, which would fail -// this test. So this test is disabled on this platform. -// See https://emscripten.org/docs/getting_started/FAQ.html#what-does-exiting-the-runtime-mean-why-don-t-atexit-s-run - -#![feature(rustc_private)] - -extern crate libc; - -fn main() { - extern "C" fn bye() { - print!(", world!"); - } - unsafe { libc::atexit(bye) }; - print!("hello"); -} diff --git a/tests/ui/runtime/stdout-during-shutdown.run.stdout b/tests/ui/runtime/stdout-during-shutdown.run.stdout deleted file mode 100644 index 30f51a3fba527..0000000000000 --- a/tests/ui/runtime/stdout-during-shutdown.run.stdout +++ /dev/null @@ -1 +0,0 @@ -hello, world! \ No newline at end of file