2 #[cfg(all(target_os = "linux", target_env = "gnu"))]
3 fn test_glibc_version() {
4 // This mostly just tests that the weak linkage doesn't panic wildly...
5 super::glibc_version();
9 #[cfg(all(target_os = "linux", target_env = "gnu"))]
10 fn test_parse_glibc_version() {
12 ("0.0", Some((0, 0))),
13 ("01.+2", Some((1, 2))),
14 ("3.4.5.six", Some((3, 4))),
20 for &(version_str, parsed) in cases.iter() {
21 assert_eq!(parsed, super::parse_glibc_version(version_str));