Disable glibc tests on vxworks

VxWorks does not provide glibc, but we still need to test rustc on
VxWorks.
This commit is contained in:
Nicholas Baron 2021-07-20 15:10:33 -07:00
parent 05f2326c05
commit b07d175388

View file

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