Skip to content

Commit f870433

Browse files
committed
ignore test_library_load on windows/mac
1 parent 448862f commit f870433

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,12 +2663,10 @@ mod tests {
26632663
assert!(get_registered_kernels_for_op("Add").unwrap().len() > 0);
26642664
}
26652665

2666+
#[cfg(target_os = "linux")]
26662667
#[test]
26672668
fn test_library_load() {
26682669
// This test is implemented for linux only
2669-
if std::env::consts::OS != "linux" {
2670-
return;
2671-
}
26722670
let lib_path = "test_resources/library/test_op.so";
26732671
assert!(
26742672
std::path::Path::new(lib_path).exists(),

0 commit comments

Comments
 (0)