File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
makefiles/special_targets/precious Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -625,15 +625,18 @@ mod special_targets {
625625 let output = child. wait_with_output ( ) . expect ( "failed to wait for child" ) ;
626626
627627 let stdout = String :: from_utf8_lossy ( & output. stdout ) ;
628- assert_eq ! ( stdout, "echo hello\n hello\n touch some.txt\n sleep 1\n " ) ;
629- assert ! ( fs:: exists( "./some.txt" ) . unwrap( ) ) ;
628+ assert_eq ! (
629+ stdout,
630+ "echo hello\n hello\n touch preciousdir/some.txt\n sleep 1\n "
631+ ) ;
632+ assert ! ( fs:: exists( "preciousdir/some.txt" ) . unwrap( ) ) ;
630633
631634 let stderr = String :: from_utf8_lossy ( & output. stderr ) ;
632635 assert_eq ! ( stderr, "make: Interrupt\n " ) ;
633636
634637 assert_eq ! ( output. status. code( ) , Some ( 130 ) ) ;
635638
636- remove_file ( "some.txt" ) . unwrap ( ) ;
639+ remove_file ( "preciousdir/ some.txt" ) . unwrap ( ) ;
637640 }
638641
639642 #[ test]
Original file line number Diff line number Diff line change 11.PRECIOUS :
22text.txt :
33 echo hello
4- touch some.txt
4+ touch preciousdir/ some.txt
55 sleep 1
66 echo bye
You can’t perform that action at this time.
0 commit comments