So it looks like newer Linux distros cause the test suite to fail. What's the right way to fix this and not break older distros?
FAIL: Swift(linux-x86_64) :: stdlib/POSIX.swift (600 of 12185)
******************** TEST 'Swift(linux-x86_64) :: stdlib/POSIX.swift' FAILED ********************
Script:
--
: 'RUN: at line 1'; rm -rf "/home/dave/b/u/t/tools/swift/test-linux-x86_64/stdlib/Output/POSIX.swift.tmp" && mkdir -p "/home/dave/b/u/t/tools/swift/test-linux-x86_64/stdlib/Output/POSIX.swift.tmp" && /home/dave/b/u/t/bin/swiftc -target x86_64-unknown-linux-gnu -toolchain-stdlib-rpath -module-cache-path '/home/dave/b/u/t/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache' -swift-version 4 -module-cache-path '/home/dave/b/u/t/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache' /home/dave/s/u/swift/test/stdlib/POSIX.swift -o /home/dave/b/u/t/tools/swift/test-linux-x86_64/stdlib/Output/POSIX.swift.tmp/a.out -module-name main && echo /home/dave/b/u/t/tools/swift/test-linux-x86_64/stdlib/Output/POSIX.swift.tmp/a.out &&/usr/bin/env DYLD_LIBRARY_PATH='/home/dave/b/u/t/lib/swift/linux/x86_64' LD_LIBRARY_PATH='/home/dave/b/u/t/lib/swift/linux/x86_64:' SIMCTL_CHILD_DYLD_LIBRARY_PATH='/home/dave/b/u/t/lib/swift/linux/x86_64' /home/dave/b/u/t/tools/swift/test-linux-x86_64/stdlib/Output/POSIX.swift.tmp/a.out /home/dave/b/u/t/tools/swift/test-linux-x86_64/stdlib/Output/POSIX.swift.tmp
--
Exit Code: 1
Command Output (stderr):
--
/home/dave/s/u/swift/test/stdlib/POSIX.swift:72:23: error: value of optional type 'UnsafeMutablePointer<sem_t>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sem_t>'
let res = sem_close(sem)
^
/home/dave/s/u/swift/test/stdlib/POSIX.swift:72:23: note: coalesce using '??' to provide a default when the optional value contains 'nil'
let res = sem_close(sem)
^
?? <#default value#>
/home/dave/s/u/swift/test/stdlib/POSIX.swift:72:23: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
let res = sem_close(sem)
^
!
/home/dave/s/u/swift/test/stdlib/POSIX.swift:86:23: error: value of optional type 'UnsafeMutablePointer<sem_t>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sem_t>'
let res = sem_close(sem)
^
/home/dave/s/u/swift/test/stdlib/POSIX.swift:86:23: note: coalesce using '??' to provide a default when the optional value contains 'nil'
let res = sem_close(sem)
^
?? <#default value#>
/home/dave/s/u/swift/test/stdlib/POSIX.swift:86:23: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
let res = sem_close(sem)
^
!
/home/dave/s/u/swift/test/stdlib/POSIX.swift:105:23: error: value of optional type 'UnsafeMutablePointer<sem_t>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sem_t>'
let res = sem_close(sem)
^
/home/dave/s/u/swift/test/stdlib/POSIX.swift:105:23: note: coalesce using '??' to provide a default when the optional value contains 'nil'
let res = sem_close(sem)
^
?? <#default value#>
/home/dave/s/u/swift/test/stdlib/POSIX.swift:105:23: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
let res = sem_close(sem)
^
!
/home/dave/s/u/swift/test/stdlib/POSIX.swift:123:23: error: value of optional type 'UnsafeMutablePointer<sem_t>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sem_t>'
let res = sem_close(sem)
^
/home/dave/s/u/swift/test/stdlib/POSIX.swift:123:23: note: coalesce using '??' to provide a default when the optional value contains 'nil'
let res = sem_close(sem)
^
?? <#default value#>
/home/dave/s/u/swift/test/stdlib/POSIX.swift:123:23: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
let res = sem_close(sem)
^
!