Skip to content

Commit dbeac36

Browse files
committed
Enable async feature/tests
1 parent 09a4d35 commit dbeac36

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/coreclr/inc/clrconfigvalues.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ RETAIL_CONFIG_DWORD_INFO(EXTERNAL_EnableRiscV64Zbb, W("EnableRiscV64
714714
#endif
715715

716716
// Runtime-async
717-
RETAIL_CONFIG_DWORD_INFO(UNSUPPORTED_RuntimeAsync, W("RuntimeAsync"), 0, "Enables runtime async method support")
717+
RETAIL_CONFIG_DWORD_INFO(UNSUPPORTED_RuntimeAsync, W("RuntimeAsync"), 1, "Enables runtime async method support")
718718

719719
///
720720
/// Uncategorized

src/tests/async/Directory.Build.targets

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@
44
<DisableProjectBuild Condition="'$(RuntimeFlavor)' == 'mono' or '$(TestBuildMode)' == 'nativeaot' or '$(TargetArchitecture)' == 'wasm'">true</DisableProjectBuild>
55
</PropertyGroup>
66

7-
<PropertyGroup>
8-
<!-- runtime async testing in main repo NYI -->
9-
<DisableProjectBuild>true</DisableProjectBuild>
10-
</PropertyGroup>
11-
127
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets, $(MSBuildThisFileDirectory)..))" />
138
</Project>

src/tests/async/struct/struct.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ private struct S
4545

4646
public S(int value) => Value = value;
4747

48+
// Roslyn NYI - async in structs. Remove opt-out once supported.
49+
[System.Runtime.CompilerServices.RuntimeAsyncMethodGeneration(false)]
4850
public async Task Test()
4951
{
5052
AssertEqual(100, this.Value);
@@ -56,6 +58,8 @@ public async Task Test()
5658
AssertEqual(102, this.Value);
5759
}
5860

61+
// Roslyn NYI - async in structs. Remove opt-out once supported.
62+
[System.Runtime.CompilerServices.RuntimeAsyncMethodGeneration(false)]
5963
private async Task InstanceCall()
6064
{
6165
AssertEqual(101, this.Value);

0 commit comments

Comments
 (0)