Skip to content

Commit 8960144

Browse files
authored
[unittests] Use enum name instead of literal 0 (NFC) (#77328)
For some reason this piece of code was triggering an error when building unified in which a suitable overload for `0` (and `int`) could not be found. Use the named enum value instead to avoid the problem.
1 parent d2f77f4 commit 8960144

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unittests/runtime/CompatibilityOverrideConcurrency.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ TEST_F(CompatibilityOverrideConcurrencyTest, test_swift_startOnMainActorImpl) {
332332

333333
TEST_F(CompatibilityOverrideConcurrencyTest,
334334
test_swift_task_isCurrentExecutorWithFlags) {
335-
swift_task_isCurrentExecutorWithFlags(swift_task_getMainExecutor(), 0);
335+
swift_task_isCurrentExecutorWithFlags(
336+
swift_task_getMainExecutor(), swift_task_is_current_executor_flag::None);
336337
}
337338

338339
#if RUN_ASYNC_MAIN_DRAIN_QUEUE_TEST

0 commit comments

Comments
 (0)