Skip to content

Commit d082fe3

Browse files
committed
Disable context switching tests until wasixcc supports it and is available in tests
1 parent 5c2fa7c commit d082fe3

1 file changed

Lines changed: 37 additions & 37 deletions

File tree

lib/wasix/tests/context_switching.rs

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -41,223 +41,223 @@ fn test_with_wasixcc(name: &str) -> Result<(), anyhow::Error> {
4141
)
4242
}
4343

44-
#[cfg(target_os = "linux")]
44+
#[cfg(any())]
4545
#[test]
4646
fn test_simple_switching() {
4747
test_with_wasixcc("simple_switching").unwrap();
4848
}
4949

50-
#[cfg(target_os = "linux")]
50+
#[cfg(any())]
5151
#[test]
5252
fn test_switching_with_main() {
5353
test_with_wasixcc("switching_with_main").unwrap();
5454
}
5555

56-
#[cfg(target_os = "linux")]
56+
#[cfg(any())]
5757
#[test]
5858
fn test_switching_to_a_deleted_context() {
5959
test_with_wasixcc("switching_to_a_deleted_context").unwrap();
6060
}
6161

62-
#[cfg(target_os = "linux")]
62+
#[cfg(any())]
6363
#[test]
6464
fn test_switching_threads() {
6565
test_with_wasixcc("switching_in_threads").unwrap();
6666
}
6767

68-
#[cfg(target_os = "linux")]
68+
#[cfg(any())]
6969
#[test]
7070
fn test_multiple_contexts() {
7171
test_with_wasixcc("multiple_contexts").unwrap();
7272
}
7373

74-
#[cfg(target_os = "linux")]
74+
#[cfg(any())]
7575
#[test]
7676
fn test_error_handling() {
7777
test_with_wasixcc("error_handling").unwrap();
7878
}
7979

80-
#[cfg(target_os = "linux")]
80+
#[cfg(any())]
8181
#[test]
8282
fn test_nested_switches() {
8383
test_with_wasixcc("nested_switches").unwrap();
8484
}
8585

86-
#[cfg(target_os = "linux")]
86+
#[cfg(any())]
8787
#[test]
8888
fn test_state_preservation() {
8989
test_with_wasixcc("state_preservation").unwrap();
9090
}
9191

92-
#[cfg(target_os = "linux")]
92+
#[cfg(any())]
9393
#[test]
9494
fn test_main_context_id() {
9595
test_with_wasixcc("main_context_id").unwrap();
9696
}
9797

98-
#[cfg(target_os = "linux")]
98+
#[cfg(any())]
9999
#[test]
100100
fn test_self_switching() {
101101
test_with_wasixcc("self_switching").unwrap();
102102
}
103103

104-
#[cfg(target_os = "linux")]
104+
#[cfg(any())]
105105
#[test]
106106
fn test_cleanup_order() {
107107
test_with_wasixcc("cleanup_order").unwrap();
108108
}
109109

110-
#[cfg(target_os = "linux")]
110+
#[cfg(any())]
111111
#[test]
112112
fn test_deep_recursion() {
113113
test_with_wasixcc("deep_recursion").unwrap();
114114
}
115115

116-
#[cfg(target_os = "linux")]
116+
#[cfg(any())]
117117
#[test]
118118
fn test_rapid_switching() {
119119
test_with_wasixcc("rapid_switching").unwrap();
120120
}
121121

122-
#[cfg(target_os = "linux")]
122+
#[cfg(any())]
123123
#[test]
124124
fn test_heap_allocations() {
125125
test_with_wasixcc("heap_allocations").unwrap();
126126
}
127127

128-
#[cfg(target_os = "linux")]
128+
#[cfg(any())]
129129
#[test]
130130
fn test_many_contexts() {
131131
test_with_wasixcc("many_contexts").unwrap();
132132
}
133133

134-
#[cfg(target_os = "linux")]
134+
#[cfg(any())]
135135
#[test]
136136
fn test_file_io_switching() {
137137
test_with_wasixcc("file_io_switching").unwrap();
138138
}
139139

140-
#[cfg(target_os = "linux")]
140+
#[cfg(any())]
141141
#[test]
142142
fn test_contexts_with_mutexes() {
143143
test_with_wasixcc("contexts_with_mutexes").unwrap();
144144
}
145145

146-
#[cfg(target_os = "linux")]
146+
#[cfg(any())]
147147
#[test]
148148
fn test_contexts_with_env_vars() {
149149
test_with_wasixcc("contexts_with_env_vars").unwrap();
150150
}
151151

152-
#[cfg(target_os = "linux")]
152+
#[cfg(any())]
153153
#[test]
154154
fn test_contexts_with_getcwd() {
155155
test_with_wasixcc("contexts_with_getcwd").unwrap();
156156
}
157157

158-
#[cfg(target_os = "linux")]
158+
#[cfg(any())]
159159
#[test]
160160
fn test_contexts_with_signals() {
161161
test_with_wasixcc("contexts_with_signals").unwrap();
162162
}
163163

164-
#[cfg(target_os = "linux")]
164+
#[cfg(any())]
165165
#[test]
166166
fn test_contexts_with_timers() {
167167
test_with_wasixcc("contexts_with_timers").unwrap();
168168
}
169169

170-
#[cfg(target_os = "linux")]
170+
#[cfg(any())]
171171
#[test]
172172
fn test_contexts_with_pipes() {
173173
test_with_wasixcc("contexts_with_pipes").unwrap();
174174
}
175175

176-
#[cfg(target_os = "linux")]
176+
#[cfg(any())]
177177
#[test]
178178
fn test_complex_nested_operations() {
179179
test_with_wasixcc("complex_nested_operations").unwrap();
180180
}
181181

182-
#[cfg(target_os = "linux")]
182+
#[cfg(any())]
183183
#[test]
184184
fn test_pending_file_operations() {
185185
test_with_wasixcc("pending_file_operations").unwrap();
186186
}
187187

188-
#[cfg(target_os = "linux")]
188+
#[cfg(any())]
189189
#[test]
190190
fn test_recursive_host_calls() {
191191
test_with_wasixcc("recursive_host_calls").unwrap();
192192
}
193193

194-
#[cfg(target_os = "linux")]
194+
#[cfg(any())]
195195
#[test]
196196
fn test_malloc_during_switch() {
197197
test_with_wasixcc("malloc_during_switch").unwrap();
198198
}
199199

200-
#[cfg(target_os = "linux")]
200+
#[cfg(any())]
201201
#[test]
202202
fn test_nested_host_call_switch() {
203203
test_with_wasixcc("nested_host_call_switch").unwrap();
204204
}
205205

206-
#[cfg(target_os = "linux")]
206+
#[cfg(any())]
207207
#[test]
208208
fn test_active_context_id() {
209209
test_with_wasixcc("active_context_id").unwrap();
210210
}
211211

212-
#[cfg(target_os = "linux")]
212+
#[cfg(any())]
213213
#[test]
214214
fn test_wrong_entrypoint() {
215215
test_with_wasixcc("wrong_entrypoint").unwrap();
216216
}
217217

218-
#[cfg(target_os = "linux")]
218+
#[cfg(any())]
219219
#[test]
220220
fn test_switch_to_never_resumed() {
221221
test_with_wasixcc("switch_to_never_resumed").unwrap();
222222
}
223223

224-
#[cfg(target_os = "linux")]
224+
#[cfg(any())]
225225
#[test]
226226
fn test_function_args_preserved() {
227227
test_with_wasixcc("function_args_preserved").unwrap();
228228
}
229229

230-
#[cfg(target_os = "linux")]
230+
#[cfg(any())]
231231
#[test]
232232
fn test_correct_context_activated() {
233233
test_with_wasixcc("correct_context_activated").unwrap();
234234
}
235235

236-
#[cfg(target_os = "linux")]
236+
#[cfg(any())]
237237
#[test]
238238
fn test_switch_from_recursion() {
239239
test_with_wasixcc("switch_from_recursion").unwrap();
240240
}
241241

242-
#[cfg(target_os = "linux")]
242+
#[cfg(any())]
243243
#[test]
244244
fn test_global_ctx_ids() {
245245
test_with_wasixcc("global_ctx_ids").unwrap();
246246
}
247247

248-
#[cfg(target_os = "linux")]
248+
#[cfg(any())]
249249
#[test]
250250
fn test_shared_recursion() {
251251
test_with_wasixcc("shared_recursion").unwrap();
252252
}
253253

254-
#[cfg(target_os = "linux")]
254+
#[cfg(any())]
255255
#[test]
256256
fn test_mutual_recursion() {
257257
test_with_wasixcc("mutual_recursion").unwrap();
258258
}
259259

260-
#[cfg(target_os = "linux")]
260+
#[cfg(any())]
261261
#[test]
262262
fn test_three_way_recursion() {
263263
test_with_wasixcc("three_way_recursion").unwrap();

0 commit comments

Comments
 (0)