File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
makefiles/special_targets/precious Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ mod recipes {
547547
548548mod special_targets {
549549 use std:: { fs, thread, time:: Duration } ;
550-
550+ use std :: fs :: remove_dir ;
551551 use super :: * ;
552552 use libc:: { kill, SIGINT } ;
553553 use posixutils_make:: special_target;
@@ -627,7 +627,7 @@ mod special_targets {
627627 let stdout = String :: from_utf8_lossy ( & output. stdout ) ;
628628 assert_eq ! (
629629 stdout,
630- "echo hello\n hello\n touch preciousdir/some.txt\n sleep 1\n "
630+ "echo hello\n hello\n mkdir preciousdir \ n touch preciousdir/some.txt\n sleep 1\n "
631631 ) ;
632632 assert ! ( fs:: exists( "preciousdir/some.txt" ) . unwrap( ) ) ;
633633
@@ -637,6 +637,7 @@ mod special_targets {
637637 assert_eq ! ( output. status. code( ) , Some ( 130 ) ) ;
638638
639639 remove_file ( "preciousdir/some.txt" ) . unwrap ( ) ;
640+ remove_dir ( "preciousdir" ) . unwrap ( ) ;
640641 }
641642
642643 #[ test]
Original file line number Diff line number Diff line change 11.PRECIOUS :
22text.txt :
33 echo hello
4+ mkdir preciousdir
45 touch preciousdir/some.txt
56 sleep 1
67 echo bye
You can’t perform that action at this time.
0 commit comments