Skip to content

Commit

Permalink
fix: while1 testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jan 27, 2023
1 parent 0159f7b commit 8b2dc70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/aplusb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ fn it_should_not_run_sleep() {
common::setup();
let result = run_fail_cpp("sleep.c", 1000, 262144);
assert_eq!(*result.status(), None);
assert_eq!(*result.signal(), Some(Signal::SIGALRM));
let signal = result.signal().unwrap();
assert!(signal == Signal::SIGALRM || signal == Signal::SIGKILL);
}

#[test]
Expand Down

0 comments on commit 8b2dc70

Please sign in to comment.