Use the entry macro for the test main

This commit is contained in:
GBA bot 2022-01-02 18:14:37 +00:00
parent af40d48360
commit 02939041b4

View file

@ -282,9 +282,9 @@ pub fn test_runner(tests: &[&dyn Testable]) {
.unwrap();
}
#[no_mangle]
#[cfg(test)]
pub extern "C" fn main() -> ! {
#[entry]
fn agb_test_main() -> ! {
test_main();
loop {}
}