Skip to content

Commit 167cbb7

Browse files
committed
Disable cargo_watch snapshot tests on windows
1 parent d0a5916 commit 167cbb7

File tree

1 file changed

+7
-0
lines changed
  • crates/ra_cargo_watch/src/conv

1 file changed

+7
-0
lines changed

crates/ra_cargo_watch/src/conv/test.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ fn parse_diagnostic(val: &str) -> cargo_metadata::diagnostic::Diagnostic {
77
}
88

99
#[test]
10+
#[cfg(not(windows))]
1011
fn snap_rustc_incompatible_type_for_trait() {
1112
let diag = parse_diagnostic(
1213
r##"{
@@ -60,6 +61,7 @@ fn snap_rustc_incompatible_type_for_trait() {
6061
}
6162

6263
#[test]
64+
#[cfg(not(windows))]
6365
fn snap_rustc_unused_variable() {
6466
let diag = parse_diagnostic(
6567
r##"{
@@ -142,6 +144,7 @@ fn snap_rustc_unused_variable() {
142144
}
143145

144146
#[test]
147+
#[cfg(not(windows))]
145148
fn snap_rustc_wrong_number_of_parameters() {
146149
let diag = parse_diagnostic(
147150
r##"{
@@ -266,6 +269,7 @@ fn snap_rustc_wrong_number_of_parameters() {
266269
}
267270

268271
#[test]
272+
#[cfg(not(windows))]
269273
fn snap_clippy_pass_by_ref() {
270274
let diag = parse_diagnostic(
271275
r##"{
@@ -386,6 +390,7 @@ fn snap_clippy_pass_by_ref() {
386390
}
387391

388392
#[test]
393+
#[cfg(not(windows))]
389394
fn snap_rustc_mismatched_type() {
390395
let diag = parse_diagnostic(
391396
r##"{
@@ -429,6 +434,7 @@ fn snap_rustc_mismatched_type() {
429434
}
430435

431436
#[test]
437+
#[cfg(not(windows))]
432438
fn snap_handles_macro_location() {
433439
let diag = parse_diagnostic(
434440
r##"{
@@ -700,6 +706,7 @@ fn snap_handles_macro_location() {
700706
}
701707

702708
#[test]
709+
#[cfg(not(windows))]
703710
fn snap_macro_compiler_error() {
704711
let diag = parse_diagnostic(
705712
r##"{

0 commit comments

Comments
 (0)