We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 370a0b4 commit ca83797Copy full SHA for ca83797
tests/by-util/test_install.rs
@@ -1751,3 +1751,19 @@ fn test_install_from_fifo() {
1751
assert!(s.fixtures.file_exists(target_name));
1752
assert_eq!(s.fixtures.read(target_name), test_string);
1753
}
1754
+
1755
+#[test]
1756
+#[cfg(unix)]
1757
+fn test_install_from_stdin() {
1758
+ let (at, mut ucmd) = at_and_ucmd!();
1759
+ let target = "target";
1760
+ let test_string = "Hello, World!\n";
1761
1762
+ ucmd.arg("/proc/self/fd/0")
1763
+ .arg(target)
1764
+ .pipe_in(test_string)
1765
+ .succeeds();
1766
1767
+ assert!(at.file_exists(target));
1768
+ assert_eq!(at.read(target), test_string);
1769
+}
0 commit comments