summarylogtreecommitdiffstats
path: root/swift-tests-glibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'swift-tests-glibc.patch')
-rw-r--r--swift-tests-glibc.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/swift-tests-glibc.patch b/swift-tests-glibc.patch
new file mode 100644
index 000000000000..5dbff97d2584
--- /dev/null
+++ b/swift-tests-glibc.patch
@@ -0,0 +1,40 @@
+diff --git a/test/stdlib/POSIX.swift b/test/stdlib/POSIX.swift
+index 91cec1c2e01b..ead9a623554b 100644
+--- a/test/stdlib/POSIX.swift
++++ b/test/stdlib/POSIX.swift
+@@ -69,7 +69,7 @@ POSIXTests.test("sem_open success") {
+ let sem = sem_open(semaphoreName, O_CREAT, 0o777, 1)
+ expectNotEqual(SEM_FAILED, sem)
+
+- let res = sem_close(sem)
++ let res = sem_close(sem!)
+ expectEqual(0, res)
+
+ let res2 = sem_unlink(semaphoreName)
+@@ -83,7 +83,7 @@ POSIXTests.test("sem_open O_EXCL success") {
+ let sem = sem_open(semaphoreName, O_CREAT | O_EXCL, 0o777, 1)
+ expectNotEqual(SEM_FAILED, sem)
+
+- let res = sem_close(sem)
++ let res = sem_close(sem!)
+ expectEqual(0, res)
+
+ let res2 = sem_unlink(semaphoreName)
+@@ -102,7 +102,7 @@ POSIXTests.test("sem_open existing") {
+ // difficult.
+ expectNotEqual(SEM_FAILED, sem2)
+
+- let res = sem_close(sem)
++ let res = sem_close(sem!)
+ expectEqual(0, res)
+
+ let res2 = sem_unlink(semaphoreName)
+@@ -120,7 +120,7 @@ POSIXTests.test("sem_open existing O_EXCL fail") {
+ expectEqual(SEM_FAILED, sem2)
+ expectEqual(EEXIST, errno)
+
+- let res = sem_close(sem)
++ let res = sem_close(sem!)
+ expectEqual(0, res)
+
+ let res2 = sem_unlink(semaphoreName)