diff --git a/src/tests/main_tests.rs b/src/tests/main_tests.rs index c1ebb92..88b5cef 100644 --- a/src/tests/main_tests.rs +++ b/src/tests/main_tests.rs @@ -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); +} +