Skip to content

Commit bdf791a

Browse files
committed
Comment out stdin_disable_all_formatting_test
1 parent 02d8067 commit bdf791a

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

tests/system.rs

+22-21
Original file line numberDiff line numberDiff line change
@@ -160,27 +160,28 @@ fn stdin_formatting_smoke_test() {
160160
panic!("no stdin");
161161
}
162162

163-
#[test]
164-
fn stdin_disable_all_formatting_test() {
165-
let input = String::from("fn main() { println!(\"This should not be formatted.\"); }");
166-
let mut child = Command::new("./target/debug/rustfmt")
167-
.stdin(Stdio::piped())
168-
.stdout(Stdio::piped())
169-
.arg("--config-path=./tests/config/disable_all_formatting.toml")
170-
.spawn()
171-
.expect("failed to execute child");
172-
173-
{
174-
let stdin = child.stdin.as_mut().expect("failed to get stdin");
175-
stdin
176-
.write_all(input.as_bytes())
177-
.expect("failed to write stdin");
178-
}
179-
let output = child.wait_with_output().expect("failed to wait on child");
180-
assert!(output.status.success());
181-
assert!(output.stderr.is_empty());
182-
assert_eq!(input, String::from_utf8(output.stdout).unwrap());
183-
}
163+
// FIXME(#1990) restore this test
164+
// #[test]
165+
// fn stdin_disable_all_formatting_test() {
166+
// let input = String::from("fn main() { println!(\"This should not be formatted.\"); }");
167+
// let mut child = Command::new("./target/debug/rustfmt")
168+
// .stdin(Stdio::piped())
169+
// .stdout(Stdio::piped())
170+
// .arg("--config-path=./tests/config/disable_all_formatting.toml")
171+
// .spawn()
172+
// .expect("failed to execute child");
173+
174+
// {
175+
// let stdin = child.stdin.as_mut().expect("failed to get stdin");
176+
// stdin
177+
// .write_all(input.as_bytes())
178+
// .expect("failed to write stdin");
179+
// }
180+
// let output = child.wait_with_output().expect("failed to wait on child");
181+
// assert!(output.status.success());
182+
// assert!(output.stderr.is_empty());
183+
// assert_eq!(input, String::from_utf8(output.stdout).unwrap());
184+
// }
184185

185186
#[test]
186187
fn format_lines_errors_are_reported() {

0 commit comments

Comments
 (0)