From c82f438726f1e5b4ce75b5363a445c6f99190ee1 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Mon, 27 Mar 2023 13:11:34 -0400 Subject: [PATCH] Remove extern "C" process stubs from test runner --- ctru-rs/src/test_runner.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/ctru-rs/src/test_runner.rs b/ctru-rs/src/test_runner.rs index 192483f..8b3f117 100644 --- a/ctru-rs/src/test_runner.rs +++ b/ctru-rs/src/test_runner.rs @@ -76,25 +76,3 @@ fn make_owned_test(test: &&TestDescAndFn) -> TestDescAndFn { _ => panic!("non-static tests passed to test::test_main_static"), } } - -/// The following functions are stubs needed to link the test library, -/// but do nothing because we don't actually need them for the runner to work. -mod link_fix { - #[no_mangle] - extern "C" fn execvp( - _argc: *const libc::c_char, - _argv: *mut *const libc::c_char, - ) -> libc::c_int { - -1 - } - - #[no_mangle] - extern "C" fn pipe(_fildes: *mut libc::c_int) -> libc::c_int { - -1 - } - - #[no_mangle] - extern "C" fn sigemptyset(_arg1: *mut libc::sigset_t) -> ::libc::c_int { - -1 - } -}