Skip to content

Commit 56f28ee

Browse files
committed
[Concurrency] %import dispatch for Linux startSynchronously test
1 parent fa8b5f7 commit 56f28ee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

stdlib/public/Concurrency/Actor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ static void swift_task_switchImpl(SWIFT_ASYNC_CONTEXT AsyncContext *resumeContex
23112311
currentTaskExecutor.isDefined() ? "" : " (undefined)",
23122312
newTaskExecutor.getIdentity(),
23132313
newTaskExecutor.isDefined() ? "" : " (undefined)",
2314-
trackingInfo->isSynchronousStart() ? "[synchronous start]" : "[NOT SYNC START]");
2314+
trackingInfo->isSynchronousStart() ? "[synchronous start]" : "");
23152315

23162316
// If the current executor is compatible with running the new executor,
23172317
// we can just immediately continue running with the resume function

stdlib/public/Concurrency/Task+startSynchronously.swift.gyb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extension Task where Failure == ${FAILURE_TYPE} {
5252
/// - priority: The priority of the task.
5353
/// Pass `nil` to use the ``Task/basePriority`` of the current task (if there is one).
5454
/// - operation: the operation to be run immediately upon entering the task.
55-
/// - Returns:
55+
/// - Returns: A reference to the unstructured task which may be awaited on.
5656
@available(SwiftStdlib 6.2, *)
5757
@discardableResult
5858
public static func _startSynchronously(

test/Concurrency/Runtime/startSynchronously.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -Xfrontend -disable-availability-checking %s -swift-version 6 -o %t/a.out
2+
// RUN: %target-build-swift -Xfrontend -disable-availability-checking %s %import-libdispatch -swift-version 6 -o %t/a.out
33
// RUN: %target-codesign %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --dump-input=always
55

0 commit comments

Comments
 (0)