testing the ctrc_c setup function
This commit is contained in:
parent
9c1c035026
commit
d2b5ea643d
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
use workctl::sync_flag;
|
||||
|
||||
|
||||
#[test]
|
||||
|
@ -6,4 +7,10 @@ fn it_works() {
|
|||
assert_eq!(result, 4);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn can_make_ctrl_c_handler() {
|
||||
let (control_c_flag_tx, control_c_called_flag_rx) = sync_flag::new_syncflag(false);
|
||||
crate::setup_control_c(control_c_flag_tx);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue