Skip to content

Commit 2d3cbdc

Browse files
committed
Ignore tests that use shell/2 outside of Unix systems
1 parent 72165a5 commit 2d3cbdc

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

tests/scryer/issues.rs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,21 @@ fn issue2725_dcg_without_module() {
5555
#[serial]
5656
#[test]
5757
#[cfg_attr(miri, ignore = "it takes too long to run")]
58+
#[cfg_attr(
59+
not(unix),
60+
ignore = "uses shell/2 and it's not portable outside of POSIX"
61+
)]
5862
fn issue_delete_directory() {
5963
load_module_test("tests-pl/issue_delete_directory.pl", "directory_deleted");
6064
}
6165

6266
#[serial]
6367
#[test]
6468
#[cfg_attr(miri, ignore = "it takes too long to run")]
69+
#[cfg_attr(
70+
not(unix),
71+
ignore = "uses shell/2 and it's not portable outside of POSIX"
72+
)]
6573
fn issue_delete_file() {
6674
load_module_test("tests-pl/issue_delete_file.pl", "file_deleted");
6775
}
@@ -76,48 +84,76 @@ fn issue_directory_exists() {
7684
#[serial]
7785
#[test]
7886
#[cfg_attr(miri, ignore = "it takes too long to run")]
87+
#[cfg_attr(
88+
not(unix),
89+
ignore = "uses shell/2 and it's not portable outside of POSIX"
90+
)]
7991
fn issue_directory_files() {
8092
load_module_test("tests-pl/issue_directory_files.pl", "1");
8193
}
8294

8395
#[serial]
8496
#[test]
8597
#[cfg_attr(miri, ignore = "it takes too long to run")]
98+
#[cfg_attr(
99+
not(unix),
100+
ignore = "uses shell/2 and it's not portable outside of POSIX"
101+
)]
86102
fn issue_file_copy() {
87103
load_module_test("tests-pl/issue_file_copy.pl", "file_copied");
88104
}
89105

90106
#[serial]
91107
#[test]
92108
#[cfg_attr(miri, ignore = "it takes too long to run")]
109+
#[cfg_attr(
110+
not(unix),
111+
ignore = "uses shell/2 and it's not portable outside of POSIX"
112+
)]
93113
fn issue_file_exists() {
94114
load_module_test("tests-pl/issue_file_exists.pl", "");
95115
}
96116

97117
#[serial]
98118
#[test]
99119
#[cfg_attr(miri, ignore = "it takes too long to run")]
120+
#[cfg_attr(
121+
not(unix),
122+
ignore = "uses shell/2 and it's not portable outside of POSIX"
123+
)]
100124
fn issue_file_size() {
101125
load_module_test("tests-pl/issue_file_size.pl", "");
102126
}
103127

104128
#[serial]
105129
#[test]
106130
#[cfg_attr(miri, ignore = "it takes too long to run")]
131+
#[cfg_attr(
132+
not(unix),
133+
ignore = "uses shell/2 and it's not portable outside of POSIX"
134+
)]
107135
fn issue_file_time() {
108136
load_module_test("tests-pl/issue_file_time.pl", "");
109137
}
110138

111139
#[serial]
112140
#[test]
113141
#[cfg_attr(miri, ignore = "it takes too long to run")]
142+
#[cfg_attr(
143+
not(unix),
144+
ignore = "uses shell/2 and it's not portable outside of POSIX"
145+
)]
114146
fn issue_make_directory() {
115147
load_module_test("tests-pl/issue_make_directory.pl", "directory_made");
116148
}
117149

118150
#[serial]
119151
#[test]
120152
#[cfg_attr(miri, ignore = "it takes too long to run")]
153+
#[cfg_attr(
154+
not(unix),
155+
ignore = "uses shell/2 and it's not portable outside of POSIX"
156+
)]
121157
fn issue_make_directory_path() {
122158
load_module_test(
123159
"tests-pl/issue_make_directory_path.pl",
@@ -128,13 +164,21 @@ fn issue_make_directory_path() {
128164
#[serial]
129165
#[test]
130166
#[cfg_attr(miri, ignore = "it takes too long to run")]
167+
#[cfg_attr(
168+
not(unix),
169+
ignore = "uses shell/2 and it's not portable outside of POSIX"
170+
)]
131171
fn issue_path_canonical() {
132172
load_module_test("tests-pl/issue_path_canonical.pl", "path_canonicalized");
133173
}
134174

135175
#[serial]
136176
#[test]
137177
#[cfg_attr(miri, ignore = "it takes too long to run")]
178+
#[cfg_attr(
179+
not(unix),
180+
ignore = "uses shell/2 and it's not portable outside of POSIX"
181+
)]
138182
fn issue_rename_file() {
139183
load_module_test("tests-pl/issue_rename_file.pl", "file_renamed");
140184
}

0 commit comments

Comments
 (0)