Skip to content

Commit 90d1ffb

Browse files
committed
[make] FIX PRECIOUS
1 parent a446998 commit 90d1ffb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

make/tests/integration.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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\nhello\ntouch some.txt\nsleep 1\n");
629-
assert!(fs::exists("./some.txt").unwrap());
628+
assert_eq!(
629+
stdout,
630+
"echo hello\nhello\ntouch preciousdir/some.txt\nsleep 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]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PRECIOUS:
22
text.txt:
33
echo hello
4-
touch some.txt
4+
touch preciousdir/some.txt
55
sleep 1
66
echo bye

0 commit comments

Comments
 (0)