Skip to content

Commit b07d175

Browse files
committed
Disable glibc tests on vxworks
VxWorks does not provide glibc, but we still need to test rustc on VxWorks.
1 parent 05f2326 commit b07d175

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/sys/unix/os/tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
use super::*;
22

33
#[test]
4+
#[cfg(not(target_os = "vxworks"))]
45
fn test_glibc_version() {
56
// This mostly just tests that the weak linkage doesn't panic wildly...
67
glibc_version();
78
}
89

910
#[test]
11+
#[cfg(not(target_os = "vxworks"))]
1012
fn test_parse_glibc_version() {
1113
let cases = [
1214
("0.0", Some((0, 0))),

0 commit comments

Comments
 (0)