Skip to content

Commit d3eb3e6

Browse files
authored
Merge pull request #37245 from jckarter/objc-async-bridge-block-captures-5.5
[5.5] Update test to behave more deterministically
2 parents 59958ef + f477a63 commit d3eb3e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Concurrency/Runtime/objc_async.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-clang -fobjc-arc %S/Inputs/objc_async.m -c -o %t/objc_async_objc.o
3-
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -parse-as-library -module-name main -import-objc-header %S/Inputs/objc_async.h %s %t/objc_async_objc.o -o %t/objc_async
3+
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -Xfrontend -disable-availability-checking -parse-as-library -module-name main -import-objc-header %S/Inputs/objc_async.h %s %t/objc_async_objc.o -o %t/objc_async
44
// RUN: %target-run %t/objc_async | %FileCheck %s
55

66
// REQUIRES: executable_test
@@ -50,6 +50,8 @@ class Clbuttic: Butt {
5050
// CHECK-NEXT: called into override
5151
// CHECK-NEXT: butt {{.*}} named clbuttic occurred at 679
5252
scheduleButt(Clbuttic(), "clbuttic")
53+
54+
await Task.sleep(500_000)
5355
}
5456
}
5557

0 commit comments

Comments
 (0)