]> git.lizzy.rs Git - rust.git/commitdiff
Disable glibc tests on vxworks
authorNicholas Baron <Nicholas.Baron@windriver.com>
Tue, 20 Jul 2021 22:10:33 +0000 (15:10 -0700)
committerNicholas Baron <Nicholas.Baron@windriver.com>
Wed, 21 Jul 2021 17:53:43 +0000 (10:53 -0700)
VxWorks does not provide glibc, but we still need to test rustc on
VxWorks.

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

index 0e1dcb390a07af619bdc8fe70a1245fb81cbe714..c445acf2722c0dc2fc5d1ea63bc31dbf789f4084 100644 (file)
@@ -1,12 +1,14 @@
 use super::*;
 
 #[test]
+#[cfg(not(target_os = "vxworks"))]
 fn test_glibc_version() {
     // This mostly just tests that the weak linkage doesn't panic wildly...
     glibc_version();
 }
 
 #[test]
+#[cfg(not(target_os = "vxworks"))]
 fn test_parse_glibc_version() {
     let cases = [
         ("0.0", Some((0, 0))),