@@ -160,27 +160,28 @@ fn stdin_formatting_smoke_test() {
160
160
panic ! ( "no stdin" ) ;
161
161
}
162
162
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
+ // }
184
185
185
186
#[ test]
186
187
fn format_lines_errors_are_reported ( ) {
0 commit comments