Skip to content

Commit 769bb27

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/scryer/issues.rs

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

6263
#[serial]
6364
#[test]
6465
#[cfg_attr(miri, ignore = "it takes too long to run")]
66+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
6567
fn issue_delete_file() {
6668
load_module_test("tests-pl/issue_delete_file.pl", "file_deleted");
6769
}
@@ -76,48 +78,55 @@ fn issue_directory_exists() {
7678
#[serial]
7779
#[test]
7880
#[cfg_attr(miri, ignore = "it takes too long to run")]
81+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
7982
fn issue_directory_files() {
8083
load_module_test("tests-pl/issue_directory_files.pl", "1");
8184
}
8285

8386
#[serial]
8487
#[test]
8588
#[cfg_attr(miri, ignore = "it takes too long to run")]
89+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
8690
fn issue_file_copy() {
8791
load_module_test("tests-pl/issue_file_copy.pl", "file_copied");
8892
}
8993

9094
#[serial]
9195
#[test]
9296
#[cfg_attr(miri, ignore = "it takes too long to run")]
97+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
9398
fn issue_file_exists() {
9499
load_module_test("tests-pl/issue_file_exists.pl", "");
95100
}
96101

97102
#[serial]
98103
#[test]
99104
#[cfg_attr(miri, ignore = "it takes too long to run")]
105+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
100106
fn issue_file_size() {
101107
load_module_test("tests-pl/issue_file_size.pl", "");
102108
}
103109

104110
#[serial]
105111
#[test]
106112
#[cfg_attr(miri, ignore = "it takes too long to run")]
113+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
107114
fn issue_file_time() {
108115
load_module_test("tests-pl/issue_file_time.pl", "");
109116
}
110117

111118
#[serial]
112119
#[test]
113120
#[cfg_attr(miri, ignore = "it takes too long to run")]
121+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
114122
fn issue_make_directory() {
115123
load_module_test("tests-pl/issue_make_directory.pl", "directory_made");
116124
}
117125

118126
#[serial]
119127
#[test]
120128
#[cfg_attr(miri, ignore = "it takes too long to run")]
129+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
121130
fn issue_make_directory_path() {
122131
load_module_test(
123132
"tests-pl/issue_make_directory_path.pl",
@@ -128,13 +137,15 @@ fn issue_make_directory_path() {
128137
#[serial]
129138
#[test]
130139
#[cfg_attr(miri, ignore = "it takes too long to run")]
140+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
131141
fn issue_path_canonical() {
132142
load_module_test("tests-pl/issue_path_canonical.pl", "path_canonicalized");
133143
}
134144

135145
#[serial]
136146
#[test]
137147
#[cfg_attr(miri, ignore = "it takes too long to run")]
148+
#[cfg_attr(not(unix), ignore = "uses shell/2 and it's not portable outside of POSIX")]
138149
fn issue_rename_file() {
139150
load_module_test("tests-pl/issue_rename_file.pl", "file_renamed");
140151
}

0 commit comments

Comments
 (0)