File tree Expand file tree Collapse file tree 2 files changed +2
-115
lines changed Expand file tree Collapse file tree 2 files changed +2
-115
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77// SPDX-License-Identifier: MIT
88//
99
10- mod kill;
11-
1210use std:: io:: Write ;
1311use std:: process:: { Command , Output , Stdio } ;
1412use std:: thread;
@@ -70,14 +68,8 @@ fn no_args() {
7068
7169#[ test]
7270fn dash_e ( ) {
73- let test_thread = std:: thread:: spawn ( || {
74- let output = run_test_base ( "crontab" , & vec ! [ "-e" . to_string( ) ] , b"" ) ;
75- assert_eq ! ( output. status. code( ) , Some ( 1 ) ) ;
76- } ) ;
77- std:: thread:: sleep ( Duration :: from_millis ( 200 ) ) ;
78- let editor = std:: env:: var ( "EDITOR" ) . unwrap_or ( "vi" . to_string ( ) ) ;
79- let _ = kill:: find_and_kill_impl ( & editor) ;
80- let _ = test_thread. join ( ) ;
71+ let output = run_test_base ( "crontab" , & vec ! [ "-e" . to_string( ) ] , b"" ) ;
72+ assert_eq ! ( output. status. code( ) , Some ( 1 ) ) ;
8173}
8274
8375#[ test]
You can’t perform that action at this time.
0 commit comments