XFAIL tests on SLES11

XFAIL some failing tests for SLES11 (older glibc), also replace spaces
in linux distro w/dashes.



git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@312774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Cain
2017-09-08 03:57:02 +00:00
parent 0b9db07158
commit 11762b4acd
4 changed files with 7 additions and 2 deletions

View File

@@ -190,12 +190,14 @@ class LinuxLocalTI(DefaultTargetInfo):
def platform_name(self):
name, _, _ = platform.linux_distribution()
name = name.lower().strip()
# Some distros have spaces, e.g. 'SUSE Linux Enterprise Server'
# lit features can't have spaces
name = name.lower().strip().replace(' ', '-')
return name # Permitted to be None
def platform_ver(self):
_, ver, _ = platform.linux_distribution()
ver = ver.lower().strip()
ver = ver.lower().strip().replace(' ', '-')
return ver # Permitted to be None.
def add_locale_features(self, features):