fix: integration testing
This commit is contained in:
parent
48f84b895b
commit
caa6e8e951
3 changed files with 10 additions and 2 deletions
|
@ -36,4 +36,3 @@ test-args = [
|
||||||
"none",
|
"none",
|
||||||
]
|
]
|
||||||
test-success-exit-code = 33 # (0x10 << 1) | 1 = 33
|
test-success-exit-code = 33 # (0x10 << 1) | 1 = 33
|
||||||
test-timeout = "300" # in seconds
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ pub extern "C" fn _start() -> ! {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
fn panic(info: &PanicInfo) -> ! {
|
fn panic(info: &PanicInfo) -> ! {
|
||||||
test_panic_handler(info);
|
test_panic_handler(info)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
|
|
|
@ -22,6 +22,15 @@ pub extern "C" fn _start() -> ! {
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// this function is called on panic
|
||||||
|
#[cfg(not(test))]
|
||||||
|
#[panic_handler]
|
||||||
|
fn panic(info: &PanicInfo) -> ! {
|
||||||
|
println!("{}", info);
|
||||||
|
|
||||||
|
loop {}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
fn panic(info: &PanicInfo) -> ! {
|
fn panic(info: &PanicInfo) -> ! {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue