@@ -59,6 +59,7 @@ fn temp_config_returning_msg(lint_message: LintMessage) -> Result<tempfile::Name
5959}
6060
6161#[ test]
62+ #[ cfg_attr( target_os = "windows" , ignore) ] // STDERR string is different
6263fn unknown_config_fails ( ) -> Result < ( ) > {
6364 let mut cmd = Command :: cargo_bin ( "lintrunner" ) ?;
6465 cmd. arg ( "--config=asdfasdfasdf" ) ;
@@ -124,6 +125,7 @@ fn empty_command_fails() -> Result<()> {
124125}
125126
126127#[ test]
128+ #[ cfg_attr( target_os = "windows" , ignore) ] // STDERR string is different
127129fn simple_linter ( ) -> Result < ( ) > {
128130 let data_path = tempfile:: tempdir ( ) ?;
129131 let lint_message = LintMessage {
@@ -154,6 +156,7 @@ fn simple_linter() -> Result<()> {
154156}
155157
156158#[ test]
159+ #[ cfg_attr( target_os = "windows" , ignore) ] // path is rendered differently
157160fn simple_linter_oneline ( ) -> Result < ( ) > {
158161 let data_path = tempfile:: tempdir ( ) ?;
159162 let lint_message = LintMessage {
@@ -185,6 +188,7 @@ fn simple_linter_oneline() -> Result<()> {
185188}
186189
187190#[ test]
191+ #[ cfg_attr( target_os = "windows" , ignore) ] // STDERR string is different
188192fn simple_linter_fails_on_nonexistent_file ( ) -> Result < ( ) > {
189193 let config = temp_config (
190194 "\
@@ -229,6 +233,7 @@ fn duplicate_code_fails() -> Result<()> {
229233}
230234
231235#[ test]
236+ #[ cfg_attr( target_os = "windows" , ignore) ] // STDOUT string is different
232237fn linter_providing_nonexistent_path_degrades_gracefully ( ) -> Result < ( ) > {
233238 let data_path = tempfile:: tempdir ( ) ?;
234239 let lint_message = LintMessage {
@@ -263,6 +268,7 @@ fn linter_providing_nonexistent_path_degrades_gracefully() -> Result<()> {
263268}
264269
265270#[ test]
271+ #[ cfg_attr( target_os = "windows" , ignore) ] // STDERR string is different
266272fn linter_hard_failure_is_caught ( ) -> Result < ( ) > {
267273 let data_path = tempfile:: tempdir ( ) ?;
268274 let config = temp_config (
@@ -315,6 +321,7 @@ fn linter_nonexistent_command() -> Result<()> {
315321}
316322
317323#[ test]
324+ #[ cfg_attr( target_os = "windows" , ignore) ] // path is rendered differently
318325fn simple_linter_replacement_message ( ) -> Result < ( ) > {
319326 let data_path = tempfile:: tempdir ( ) ?;
320327 let lint_message = LintMessage {
@@ -419,6 +426,7 @@ fn skip_nonexistent_linter() -> Result<()> {
419426}
420427
421428#[ test]
429+ #[ cfg_attr( target_os = "windows" , ignore) ] // Usage string is different
422430fn invalid_paths_cmd_and_from ( ) -> Result < ( ) > {
423431 let config = temp_config (
424432 "\
@@ -439,6 +447,7 @@ fn invalid_paths_cmd_and_from() -> Result<()> {
439447}
440448
441449#[ test]
450+ #[ cfg_attr( target_os = "windows" , ignore) ] // Usage string is different
442451fn invalid_paths_cmd_and_specified_paths ( ) -> Result < ( ) > {
443452 let config = temp_config (
444453 "\
@@ -705,6 +714,7 @@ fn tee_json() -> Result<()> {
705714}
706715
707716#[ test]
717+ #[ cfg_attr( target_os = "windows" , ignore) ] // STDOUT string is different
708718fn linter_replacement_trailing_newlines ( ) -> Result < ( ) > {
709719 let data_path = tempfile:: tempdir ( ) ?;
710720 let lint_message = LintMessage {
0 commit comments