@@ -24,14 +24,11 @@ use hyperlight_host::{
24
24
GuestBinary , HyperlightError , MultiUseSandbox , Result , UninitializedSandbox , new_error,
25
25
} ;
26
26
use hyperlight_testing:: simple_guest_as_string;
27
- #[ cfg( target_os = "windows" ) ]
28
- use serial_test:: serial; // using LoadLibrary requires serial tests
29
27
30
28
pub mod common; // pub to disable dead_code warning
31
29
use crate :: common:: get_simpleguest_sandboxes;
32
30
33
31
#[ test]
34
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
35
32
fn pass_byte_array ( ) {
36
33
for mut sandbox in get_simpleguest_sandboxes ( None ) . into_iter ( ) {
37
34
const LEN : usize = 10 ;
@@ -49,7 +46,6 @@ fn pass_byte_array() {
49
46
50
47
#[ test]
51
48
#[ ignore = "Fails with mismatched float only when c .exe guest?!" ]
52
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
53
49
fn float_roundtrip ( ) {
54
50
let doubles = [
55
51
0.0 ,
@@ -107,7 +103,6 @@ fn float_roundtrip() {
107
103
}
108
104
109
105
#[ test]
110
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
111
106
fn invalid_guest_function_name ( ) {
112
107
for mut sandbox in get_simpleguest_sandboxes ( None ) . into_iter ( ) {
113
108
let fn_name = "FunctionDoesntExist" ;
@@ -120,7 +115,6 @@ fn invalid_guest_function_name() {
120
115
}
121
116
122
117
#[ test]
123
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
124
118
fn set_static ( ) {
125
119
for mut sandbox in get_simpleguest_sandboxes ( None ) . into_iter ( ) {
126
120
let fn_name = "SetStatic" ;
@@ -133,7 +127,6 @@ fn set_static() {
133
127
}
134
128
135
129
#[ test]
136
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
137
130
fn multiple_parameters ( ) {
138
131
let ( tx, rx) = channel ( ) ;
139
132
let writer = move |msg : String | {
@@ -181,7 +174,6 @@ fn multiple_parameters() {
181
174
}
182
175
183
176
#[ test]
184
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
185
177
fn incorrect_parameter_type ( ) {
186
178
for mut sandbox in get_simpleguest_sandboxes ( None ) {
187
179
let res = sandbox. call :: < i32 > (
@@ -199,7 +191,6 @@ fn incorrect_parameter_type() {
199
191
}
200
192
201
193
#[ test]
202
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
203
194
fn incorrect_parameter_num ( ) {
204
195
for mut sandbox in get_simpleguest_sandboxes ( None ) . into_iter ( ) {
205
196
let res = sandbox. call :: < i32 > ( "Echo" , ( "1" . to_string ( ) , 2_i32 ) ) ;
@@ -229,7 +220,6 @@ fn max_memory_sandbox() {
229
220
}
230
221
231
222
#[ test]
232
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
233
223
fn iostack_is_working ( ) {
234
224
for mut sandbox in get_simpleguest_sandboxes ( None ) . into_iter ( ) {
235
225
let res: i32 = sandbox
@@ -290,13 +280,11 @@ fn simple_test_helper() -> Result<()> {
290
280
}
291
281
292
282
#[ test]
293
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
294
283
fn simple_test ( ) {
295
284
simple_test_helper ( ) . unwrap ( ) ;
296
285
}
297
286
298
287
#[ test]
299
- #[ cfg( target_os = "linux" ) ]
300
288
fn simple_test_parallel ( ) {
301
289
let handles: Vec < _ > = ( 0 ..50 )
302
290
. map ( |_| {
@@ -333,13 +321,11 @@ fn callback_test_helper() -> Result<()> {
333
321
}
334
322
335
323
#[ test]
336
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
337
324
fn callback_test ( ) {
338
325
callback_test_helper ( ) . unwrap ( ) ;
339
326
}
340
327
341
328
#[ test]
342
- #[ cfg( target_os = "linux" ) ] // windows can't run parallel with LoadLibrary
343
329
fn callback_test_parallel ( ) {
344
330
let handles: Vec < _ > = ( 0 ..100 )
345
331
. map ( |_| {
@@ -355,7 +341,6 @@ fn callback_test_parallel() {
355
341
}
356
342
357
343
#[ test]
358
- #[ cfg_attr( target_os = "windows" , serial) ] // using LoadLibrary requires serial tests
359
344
fn host_function_error ( ) -> Result < ( ) > {
360
345
for mut sandbox in get_uninit_simpleguest_sandboxes ( None ) . into_iter ( ) {
361
346
// create host function
0 commit comments