Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce6b442
static-none uses args - add comment to RequiresProcessIsolation
markples Feb 3, 2023
638a77f
remove unused arg in Runtime_80731.il
markples Feb 3, 2023
4eb4696
Rewrite 4 IL tests to use newarr instead of args
markples Feb 3, 2023
ec49b49
[cs-main] remove unused args in C# tests
markples Feb 3, 2023
6ac253f
Update 9 tests with Main(args)
markples Dec 21, 2022
16d7c0a
Workaround: add RequiresProcessIsolation to LdfldaHack
markples Jan 9, 2023
8becab5
Move [Fact] to correct location in b12263
markples Jan 9, 2023
a6dcac8
In b06020, wrap $ class so that the C# wrapper can call it
markples Jan 9, 2023
997f40a
[ILTransform -public]
markples Feb 3, 2023
b4ebb25
[ILTransform -sr]
markples Feb 3, 2023
f7327fb
Manually rename b598031/test and test2.
markples Jan 5, 2023
59646e6
[ILTransform -prociso] Rerun for new tests
markples Feb 3, 2023
f720b0a
Wrappers
markples Dec 20, 2022
c086eb2
[ILTransform -ilfact]
markples Feb 8, 2023
97a58dc
Several fixes:
markples Dec 20, 2022
660e2e3
Fix TestSummary.cs to handle invalid XML characters
markples Feb 7, 2023
5f5f99b
Manual fix for reflection on rename in Runtime_64883
markples Feb 7, 2023
d3462a5
[ILTransform -a]
markples Feb 7, 2023
da5c0ed
Revert "Manual fix for reflection on rename in Runtime_64883"
markples Feb 8, 2023
88444fd
Manual fixes
markples Mar 14, 2023
3f795e4
Update test groupings and add extern aliases
markples Mar 14, 2023
c08dbb1
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 23, 2023
2a1d7da
Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.…
markples Mar 24, 2023
6989991
[ILTransform -public]
markples Mar 24, 2023
a5f722d
[ILTransform -prociso]
markples Mar 24, 2023
0631574
[ILTransform -ilfact] (undo GitHub_26491)
markples Mar 24, 2023
b87233b
Fix xUnit1003 in Runtime_83003
markples Mar 29, 2023
b4eeaeb
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 29, 2023
6d63789
Update new test Runtime_83941 for merged groups
markples Mar 29, 2023
4dc6ecb
59444 - Changing methods to internal broke reflection calls. Use this
markples Mar 29, 2023
af00b08
Fix TestSummary.cs to handle invalid XML characters
markples Mar 30, 2023
6604ff3
Add RequiresProcessIsolation for existing issues.target entry (AOT co…
markples Mar 30, 2023
fd4456b
undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual…
markples Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion src/tests/Common/XUnitWrapperLibrary/TestSummary.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace XUnitWrapperLibrary;

public class TestSummary
Expand DownExpand Up@@ -43,7 +44,7 @@ public string ToXmlString()
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");

string outputElement = !string.IsNullOrWhiteSpace(Output)
? $"<output><![CDATA[{Output}]]></output>"
? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;

if (Exception is not null)
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,23 +3,25 @@
//

using System;
using Xunit;

public class Bug
{
public void Func(ref String str)
internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}

public void run()
internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@

using System;
using System.Diagnostics;
using Xunit;
namespace SetIPTest
{
public class SetIP
Expand All@@ -13,7 +14,7 @@ public SetIP()
}


public static void F()
internal static void F()
{
String s;
double d;
Expand DownExpand Up@@ -53,7 +54,8 @@ public static void F()
}


public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -11,6 +12,9 @@
.class public ILGEN_0x38e94b27 {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -13,7 +14,8 @@ public BB Method1(float param2)
return new BB();
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -15,7 +16,8 @@ BB Method3(float param2, ulong[] param3)

static bool Static1(float[] param1) { return false; }

public static int Main()
[Fact]
public static int TestEntryPoint()
{
try
{
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace JitTest
{
using System;

public class Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;

public class App
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Xunit;

namespace DefaultNamespace
{
Expand DownExpand Up@@ -135,7 +136,8 @@ public class Bug
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new Bug();
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
Expand All@@ -17,6 +18,9 @@
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -12,6 +13,9 @@
.class public ExceptionTest {

.method public static int32 main(){
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Convert JIT\Regression tests to merged test groups by markples · Pull Request #83895 · dotnet/runtime · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce6b442
static-none uses args - add comment to RequiresProcessIsolation
markples Feb 3, 2023
638a77f
remove unused arg in Runtime_80731.il
markples Feb 3, 2023
4eb4696
Rewrite 4 IL tests to use newarr instead of args
markples Feb 3, 2023
ec49b49
[cs-main] remove unused args in C# tests
markples Feb 3, 2023
6ac253f
Update 9 tests with Main(args)
markples Dec 21, 2022
16d7c0a
Workaround: add RequiresProcessIsolation to LdfldaHack
markples Jan 9, 2023
8becab5
Move [Fact] to correct location in b12263
markples Jan 9, 2023
a6dcac8
In b06020, wrap $ class so that the C# wrapper can call it
markples Jan 9, 2023
997f40a
[ILTransform -public]
markples Feb 3, 2023
b4ebb25
[ILTransform -sr]
markples Feb 3, 2023
f7327fb
Manually rename b598031/test and test2.
markples Jan 5, 2023
59646e6
[ILTransform -prociso] Rerun for new tests
markples Feb 3, 2023
f720b0a
Wrappers
markples Dec 20, 2022
c086eb2
[ILTransform -ilfact]
markples Feb 8, 2023
97a58dc
Several fixes:
markples Dec 20, 2022
660e2e3
Fix TestSummary.cs to handle invalid XML characters
markples Feb 7, 2023
5f5f99b
Manual fix for reflection on rename in Runtime_64883
markples Feb 7, 2023
d3462a5
[ILTransform -a]
markples Feb 7, 2023
da5c0ed
Revert "Manual fix for reflection on rename in Runtime_64883"
markples Feb 8, 2023
88444fd
Manual fixes
markples Mar 14, 2023
3f795e4
Update test groupings and add extern aliases
markples Mar 14, 2023
c08dbb1
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 23, 2023
2a1d7da
Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.…
markples Mar 24, 2023
6989991
[ILTransform -public]
markples Mar 24, 2023
a5f722d
[ILTransform -prociso]
markples Mar 24, 2023
0631574
[ILTransform -ilfact] (undo GitHub_26491)
markples Mar 24, 2023
b87233b
Fix xUnit1003 in Runtime_83003
markples Mar 29, 2023
b4eeaeb
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 29, 2023
6d63789
Update new test Runtime_83941 for merged groups
markples Mar 29, 2023
4dc6ecb
59444 - Changing methods to internal broke reflection calls. Use this
markples Mar 29, 2023
af00b08
Fix TestSummary.cs to handle invalid XML characters
markples Mar 30, 2023
6604ff3
Add RequiresProcessIsolation for existing issues.target entry (AOT co…
markples Mar 30, 2023
fd4456b
undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual…
markples Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion src/tests/Common/XUnitWrapperLibrary/TestSummary.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace XUnitWrapperLibrary;

public class TestSummary
Expand DownExpand Up@@ -43,7 +44,7 @@ public string ToXmlString()
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");

string outputElement = !string.IsNullOrWhiteSpace(Output)
? $"<output><![CDATA[{Output}]]></output>"
? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;

if (Exception is not null)
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,23 +3,25 @@
//

using System;
using Xunit;

public class Bug
{
public void Func(ref String str)
internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}

public void run()
internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@

using System;
using System.Diagnostics;
using Xunit;
namespace SetIPTest
{
public class SetIP
Expand All@@ -13,7 +14,7 @@ public SetIP()
}


public static void F()
internal static void F()
{
String s;
double d;
Expand DownExpand Up@@ -53,7 +54,8 @@ public static void F()
}


public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -11,6 +12,9 @@
.class public ILGEN_0x38e94b27 {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -13,7 +14,8 @@ public BB Method1(float param2)
return new BB();
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -15,7 +16,8 @@ BB Method3(float param2, ulong[] param3)

static bool Static1(float[] param1) { return false; }

public static int Main()
[Fact]
public static int TestEntryPoint()
{
try
{
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace JitTest
{
using System;

public class Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;

public class App
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Xunit;

namespace DefaultNamespace
{
Expand DownExpand Up@@ -135,7 +136,8 @@ public class Bug
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new Bug();
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
Expand All@@ -17,6 +18,9 @@
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -12,6 +13,9 @@
.class public ExceptionTest {

.method public static int32 main(){
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Convert JIT\Regression tests to merged test groups by markples · Pull Request #83895 · dotnet/runtime · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce6b442
static-none uses args - add comment to RequiresProcessIsolation
markples Feb 3, 2023
638a77f
remove unused arg in Runtime_80731.il
markples Feb 3, 2023
4eb4696
Rewrite 4 IL tests to use newarr instead of args
markples Feb 3, 2023
ec49b49
[cs-main] remove unused args in C# tests
markples Feb 3, 2023
6ac253f
Update 9 tests with Main(args)
markples Dec 21, 2022
16d7c0a
Workaround: add RequiresProcessIsolation to LdfldaHack
markples Jan 9, 2023
8becab5
Move [Fact] to correct location in b12263
markples Jan 9, 2023
a6dcac8
In b06020, wrap $ class so that the C# wrapper can call it
markples Jan 9, 2023
997f40a
[ILTransform -public]
markples Feb 3, 2023
b4ebb25
[ILTransform -sr]
markples Feb 3, 2023
f7327fb
Manually rename b598031/test and test2.
markples Jan 5, 2023
59646e6
[ILTransform -prociso] Rerun for new tests
markples Feb 3, 2023
f720b0a
Wrappers
markples Dec 20, 2022
c086eb2
[ILTransform -ilfact]
markples Feb 8, 2023
97a58dc
Several fixes:
markples Dec 20, 2022
660e2e3
Fix TestSummary.cs to handle invalid XML characters
markples Feb 7, 2023
5f5f99b
Manual fix for reflection on rename in Runtime_64883
markples Feb 7, 2023
d3462a5
[ILTransform -a]
markples Feb 7, 2023
da5c0ed
Revert "Manual fix for reflection on rename in Runtime_64883"
markples Feb 8, 2023
88444fd
Manual fixes
markples Mar 14, 2023
3f795e4
Update test groupings and add extern aliases
markples Mar 14, 2023
c08dbb1
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 23, 2023
2a1d7da
Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.…
markples Mar 24, 2023
6989991
[ILTransform -public]
markples Mar 24, 2023
a5f722d
[ILTransform -prociso]
markples Mar 24, 2023
0631574
[ILTransform -ilfact] (undo GitHub_26491)
markples Mar 24, 2023
b87233b
Fix xUnit1003 in Runtime_83003
markples Mar 29, 2023
b4eeaeb
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 29, 2023
6d63789
Update new test Runtime_83941 for merged groups
markples Mar 29, 2023
4dc6ecb
59444 - Changing methods to internal broke reflection calls. Use this
markples Mar 29, 2023
af00b08
Fix TestSummary.cs to handle invalid XML characters
markples Mar 30, 2023
6604ff3
Add RequiresProcessIsolation for existing issues.target entry (AOT co…
markples Mar 30, 2023
fd4456b
undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual…
markples Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion src/tests/Common/XUnitWrapperLibrary/TestSummary.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace XUnitWrapperLibrary;

public class TestSummary
Expand DownExpand Up@@ -43,7 +44,7 @@ public string ToXmlString()
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");

string outputElement = !string.IsNullOrWhiteSpace(Output)
? $"<output><![CDATA[{Output}]]></output>"
? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;

if (Exception is not null)
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,23 +3,25 @@
//

using System;
using Xunit;

public class Bug
{
public void Func(ref String str)
internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}

public void run()
internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@

using System;
using System.Diagnostics;
using Xunit;
namespace SetIPTest
{
public class SetIP
Expand All@@ -13,7 +14,7 @@ public SetIP()
}


public static void F()
internal static void F()
{
String s;
double d;
Expand DownExpand Up@@ -53,7 +54,8 @@ public static void F()
}


public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -11,6 +12,9 @@
.class public ILGEN_0x38e94b27 {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -13,7 +14,8 @@ public BB Method1(float param2)
return new BB();
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -15,7 +16,8 @@ BB Method3(float param2, ulong[] param3)

static bool Static1(float[] param1) { return false; }

public static int Main()
[Fact]
public static int TestEntryPoint()
{
try
{
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace JitTest
{
using System;

public class Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;

public class App
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Xunit;

namespace DefaultNamespace
{
Expand DownExpand Up@@ -135,7 +136,8 @@ public class Bug
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new Bug();
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
Expand All@@ -17,6 +18,9 @@
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -12,6 +13,9 @@
.class public ExceptionTest {

.method public static int32 main(){
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Convert JIT\Regression tests to merged test groups by markples · Pull Request #83895 · dotnet/runtime · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce6b442
static-none uses args - add comment to RequiresProcessIsolation
markples Feb 3, 2023
638a77f
remove unused arg in Runtime_80731.il
markples Feb 3, 2023
4eb4696
Rewrite 4 IL tests to use newarr instead of args
markples Feb 3, 2023
ec49b49
[cs-main] remove unused args in C# tests
markples Feb 3, 2023
6ac253f
Update 9 tests with Main(args)
markples Dec 21, 2022
16d7c0a
Workaround: add RequiresProcessIsolation to LdfldaHack
markples Jan 9, 2023
8becab5
Move [Fact] to correct location in b12263
markples Jan 9, 2023
a6dcac8
In b06020, wrap $ class so that the C# wrapper can call it
markples Jan 9, 2023
997f40a
[ILTransform -public]
markples Feb 3, 2023
b4ebb25
[ILTransform -sr]
markples Feb 3, 2023
f7327fb
Manually rename b598031/test and test2.
markples Jan 5, 2023
59646e6
[ILTransform -prociso] Rerun for new tests
markples Feb 3, 2023
f720b0a
Wrappers
markples Dec 20, 2022
c086eb2
[ILTransform -ilfact]
markples Feb 8, 2023
97a58dc
Several fixes:
markples Dec 20, 2022
660e2e3
Fix TestSummary.cs to handle invalid XML characters
markples Feb 7, 2023
5f5f99b
Manual fix for reflection on rename in Runtime_64883
markples Feb 7, 2023
d3462a5
[ILTransform -a]
markples Feb 7, 2023
da5c0ed
Revert "Manual fix for reflection on rename in Runtime_64883"
markples Feb 8, 2023
88444fd
Manual fixes
markples Mar 14, 2023
3f795e4
Update test groupings and add extern aliases
markples Mar 14, 2023
c08dbb1
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 23, 2023
2a1d7da
Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.…
markples Mar 24, 2023
6989991
[ILTransform -public]
markples Mar 24, 2023
a5f722d
[ILTransform -prociso]
markples Mar 24, 2023
0631574
[ILTransform -ilfact] (undo GitHub_26491)
markples Mar 24, 2023
b87233b
Fix xUnit1003 in Runtime_83003
markples Mar 29, 2023
b4eeaeb
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 29, 2023
6d63789
Update new test Runtime_83941 for merged groups
markples Mar 29, 2023
4dc6ecb
59444 - Changing methods to internal broke reflection calls. Use this
markples Mar 29, 2023
af00b08
Fix TestSummary.cs to handle invalid XML characters
markples Mar 30, 2023
6604ff3
Add RequiresProcessIsolation for existing issues.target entry (AOT co…
markples Mar 30, 2023
fd4456b
undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual…
markples Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion src/tests/Common/XUnitWrapperLibrary/TestSummary.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace XUnitWrapperLibrary;

public class TestSummary
Expand DownExpand Up@@ -43,7 +44,7 @@ public string ToXmlString()
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");

string outputElement = !string.IsNullOrWhiteSpace(Output)
? $"<output><![CDATA[{Output}]]></output>"
? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;

if (Exception is not null)
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,23 +3,25 @@
//

using System;
using Xunit;

public class Bug
{
public void Func(ref String str)
internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}

public void run()
internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@

using System;
using System.Diagnostics;
using Xunit;
namespace SetIPTest
{
public class SetIP
Expand All@@ -13,7 +14,7 @@ public SetIP()
}


public static void F()
internal static void F()
{
String s;
double d;
Expand DownExpand Up@@ -53,7 +54,8 @@ public static void F()
}


public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -11,6 +12,9 @@
.class public ILGEN_0x38e94b27 {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -13,7 +14,8 @@ public BB Method1(float param2)
return new BB();
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -15,7 +16,8 @@ BB Method3(float param2, ulong[] param3)

static bool Static1(float[] param1) { return false; }

public static int Main()
[Fact]
public static int TestEntryPoint()
{
try
{
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace JitTest
{
using System;

public class Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;

public class App
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Xunit;

namespace DefaultNamespace
{
Expand DownExpand Up@@ -135,7 +136,8 @@ public class Bug
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new Bug();
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
Expand All@@ -17,6 +18,9 @@
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -12,6 +13,9 @@
.class public ExceptionTest {

.method public static int32 main(){
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' Convert JIT\Regression tests to merged test groups by markples · Pull Request #83895 · dotnet/runtime · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce6b442
static-none uses args - add comment to RequiresProcessIsolation
markples Feb 3, 2023
638a77f
remove unused arg in Runtime_80731.il
markples Feb 3, 2023
4eb4696
Rewrite 4 IL tests to use newarr instead of args
markples Feb 3, 2023
ec49b49
[cs-main] remove unused args in C# tests
markples Feb 3, 2023
6ac253f
Update 9 tests with Main(args)
markples Dec 21, 2022
16d7c0a
Workaround: add RequiresProcessIsolation to LdfldaHack
markples Jan 9, 2023
8becab5
Move [Fact] to correct location in b12263
markples Jan 9, 2023
a6dcac8
In b06020, wrap $ class so that the C# wrapper can call it
markples Jan 9, 2023
997f40a
[ILTransform -public]
markples Feb 3, 2023
b4ebb25
[ILTransform -sr]
markples Feb 3, 2023
f7327fb
Manually rename b598031/test and test2.
markples Jan 5, 2023
59646e6
[ILTransform -prociso] Rerun for new tests
markples Feb 3, 2023
f720b0a
Wrappers
markples Dec 20, 2022
c086eb2
[ILTransform -ilfact]
markples Feb 8, 2023
97a58dc
Several fixes:
markples Dec 20, 2022
660e2e3
Fix TestSummary.cs to handle invalid XML characters
markples Feb 7, 2023
5f5f99b
Manual fix for reflection on rename in Runtime_64883
markples Feb 7, 2023
d3462a5
[ILTransform -a]
markples Feb 7, 2023
da5c0ed
Revert "Manual fix for reflection on rename in Runtime_64883"
markples Feb 8, 2023
88444fd
Manual fixes
markples Mar 14, 2023
3f795e4
Update test groupings and add extern aliases
markples Mar 14, 2023
c08dbb1
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 23, 2023
2a1d7da
Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.…
markples Mar 24, 2023
6989991
[ILTransform -public]
markples Mar 24, 2023
a5f722d
[ILTransform -prociso]
markples Mar 24, 2023
0631574
[ILTransform -ilfact] (undo GitHub_26491)
markples Mar 24, 2023
b87233b
Fix xUnit1003 in Runtime_83003
markples Mar 29, 2023
b4eeaeb
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 29, 2023
6d63789
Update new test Runtime_83941 for merged groups
markples Mar 29, 2023
4dc6ecb
59444 - Changing methods to internal broke reflection calls. Use this
markples Mar 29, 2023
af00b08
Fix TestSummary.cs to handle invalid XML characters
markples Mar 30, 2023
6604ff3
Add RequiresProcessIsolation for existing issues.target entry (AOT co…
markples Mar 30, 2023
fd4456b
undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual…
markples Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion src/tests/Common/XUnitWrapperLibrary/TestSummary.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace XUnitWrapperLibrary;

public class TestSummary
Expand DownExpand Up@@ -43,7 +44,7 @@ public string ToXmlString()
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");

string outputElement = !string.IsNullOrWhiteSpace(Output)
? $"<output><![CDATA[{Output}]]></output>"
? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;

if (Exception is not null)
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,23 +3,25 @@
//

using System;
using Xunit;

public class Bug
{
public void Func(ref String str)
internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}

public void run()
internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@

using System;
using System.Diagnostics;
using Xunit;
namespace SetIPTest
{
public class SetIP
Expand All@@ -13,7 +14,7 @@ public SetIP()
}


public static void F()
internal static void F()
{
String s;
double d;
Expand DownExpand Up@@ -53,7 +54,8 @@ public static void F()
}


public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -11,6 +12,9 @@
.class public ILGEN_0x38e94b27 {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -13,7 +14,8 @@ public BB Method1(float param2)
return new BB();
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -15,7 +16,8 @@ BB Method3(float param2, ulong[] param3)

static bool Static1(float[] param1) { return false; }

public static int Main()
[Fact]
public static int TestEntryPoint()
{
try
{
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace JitTest
{
using System;

public class Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;

public class App
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Xunit;

namespace DefaultNamespace
{
Expand DownExpand Up@@ -135,7 +136,8 @@ public class Bug
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new Bug();
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
Expand All@@ -17,6 +18,9 @@
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -12,6 +13,9 @@
.class public ExceptionTest {

.method public static int32 main(){
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Convert JIT\Regression tests to merged test groups by markples · Pull Request #83895 · dotnet/runtime · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce6b442
static-none uses args - add comment to RequiresProcessIsolation
markples Feb 3, 2023
638a77f
remove unused arg in Runtime_80731.il
markples Feb 3, 2023
4eb4696
Rewrite 4 IL tests to use newarr instead of args
markples Feb 3, 2023
ec49b49
[cs-main] remove unused args in C# tests
markples Feb 3, 2023
6ac253f
Update 9 tests with Main(args)
markples Dec 21, 2022
16d7c0a
Workaround: add RequiresProcessIsolation to LdfldaHack
markples Jan 9, 2023
8becab5
Move [Fact] to correct location in b12263
markples Jan 9, 2023
a6dcac8
In b06020, wrap $ class so that the C# wrapper can call it
markples Jan 9, 2023
997f40a
[ILTransform -public]
markples Feb 3, 2023
b4ebb25
[ILTransform -sr]
markples Feb 3, 2023
f7327fb
Manually rename b598031/test and test2.
markples Jan 5, 2023
59646e6
[ILTransform -prociso] Rerun for new tests
markples Feb 3, 2023
f720b0a
Wrappers
markples Dec 20, 2022
c086eb2
[ILTransform -ilfact]
markples Feb 8, 2023
97a58dc
Several fixes:
markples Dec 20, 2022
660e2e3
Fix TestSummary.cs to handle invalid XML characters
markples Feb 7, 2023
5f5f99b
Manual fix for reflection on rename in Runtime_64883
markples Feb 7, 2023
d3462a5
[ILTransform -a]
markples Feb 7, 2023
da5c0ed
Revert "Manual fix for reflection on rename in Runtime_64883"
markples Feb 8, 2023
88444fd
Manual fixes
markples Mar 14, 2023
3f795e4
Update test groupings and add extern aliases
markples Mar 14, 2023
c08dbb1
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 23, 2023
2a1d7da
Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.…
markples Mar 24, 2023
6989991
[ILTransform -public]
markples Mar 24, 2023
a5f722d
[ILTransform -prociso]
markples Mar 24, 2023
0631574
[ILTransform -ilfact] (undo GitHub_26491)
markples Mar 24, 2023
b87233b
Fix xUnit1003 in Runtime_83003
markples Mar 29, 2023
b4eeaeb
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 29, 2023
6d63789
Update new test Runtime_83941 for merged groups
markples Mar 29, 2023
4dc6ecb
59444 - Changing methods to internal broke reflection calls. Use this
markples Mar 29, 2023
af00b08
Fix TestSummary.cs to handle invalid XML characters
markples Mar 30, 2023
6604ff3
Add RequiresProcessIsolation for existing issues.target entry (AOT co…
markples Mar 30, 2023
fd4456b
undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual…
markples Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion src/tests/Common/XUnitWrapperLibrary/TestSummary.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace XUnitWrapperLibrary;

public class TestSummary
Expand DownExpand Up@@ -43,7 +44,7 @@ public string ToXmlString()
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");

string outputElement = !string.IsNullOrWhiteSpace(Output)
? $"<output><![CDATA[{Output}]]></output>"
? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;

if (Exception is not null)
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,23 +3,25 @@
//

using System;
using Xunit;

public class Bug
{
public void Func(ref String str)
internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}

public void run()
internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@

using System;
using System.Diagnostics;
using Xunit;
namespace SetIPTest
{
public class SetIP
Expand All@@ -13,7 +14,7 @@ public SetIP()
}


public static void F()
internal static void F()
{
String s;
double d;
Expand DownExpand Up@@ -53,7 +54,8 @@ public static void F()
}


public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -11,6 +12,9 @@
.class public ILGEN_0x38e94b27 {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -13,7 +14,8 @@ public BB Method1(float param2)
return new BB();
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -15,7 +16,8 @@ BB Method3(float param2, ulong[] param3)

static bool Static1(float[] param1) { return false; }

public static int Main()
[Fact]
public static int TestEntryPoint()
{
try
{
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace JitTest
{
using System;

public class Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;

public class App
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Xunit;

namespace DefaultNamespace
{
Expand DownExpand Up@@ -135,7 +136,8 @@ public class Bug
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new Bug();
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
Expand All@@ -17,6 +18,9 @@
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -12,6 +13,9 @@
.class public ExceptionTest {

.method public static int32 main(){
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Convert JIT\Regression tests to merged test groups by markples · Pull Request #83895 · dotnet/runtime · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce6b442
static-none uses args - add comment to RequiresProcessIsolation
markples Feb 3, 2023
638a77f
remove unused arg in Runtime_80731.il
markples Feb 3, 2023
4eb4696
Rewrite 4 IL tests to use newarr instead of args
markples Feb 3, 2023
ec49b49
[cs-main] remove unused args in C# tests
markples Feb 3, 2023
6ac253f
Update 9 tests with Main(args)
markples Dec 21, 2022
16d7c0a
Workaround: add RequiresProcessIsolation to LdfldaHack
markples Jan 9, 2023
8becab5
Move [Fact] to correct location in b12263
markples Jan 9, 2023
a6dcac8
In b06020, wrap $ class so that the C# wrapper can call it
markples Jan 9, 2023
997f40a
[ILTransform -public]
markples Feb 3, 2023
b4ebb25
[ILTransform -sr]
markples Feb 3, 2023
f7327fb
Manually rename b598031/test and test2.
markples Jan 5, 2023
59646e6
[ILTransform -prociso] Rerun for new tests
markples Feb 3, 2023
f720b0a
Wrappers
markples Dec 20, 2022
c086eb2
[ILTransform -ilfact]
markples Feb 8, 2023
97a58dc
Several fixes:
markples Dec 20, 2022
660e2e3
Fix TestSummary.cs to handle invalid XML characters
markples Feb 7, 2023
5f5f99b
Manual fix for reflection on rename in Runtime_64883
markples Feb 7, 2023
d3462a5
[ILTransform -a]
markples Feb 7, 2023
da5c0ed
Revert "Manual fix for reflection on rename in Runtime_64883"
markples Feb 8, 2023
88444fd
Manual fixes
markples Mar 14, 2023
3f795e4
Update test groupings and add extern aliases
markples Mar 14, 2023
c08dbb1
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 23, 2023
2a1d7da
Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.…
markples Mar 24, 2023
6989991
[ILTransform -public]
markples Mar 24, 2023
a5f722d
[ILTransform -prociso]
markples Mar 24, 2023
0631574
[ILTransform -ilfact] (undo GitHub_26491)
markples Mar 24, 2023
b87233b
Fix xUnit1003 in Runtime_83003
markples Mar 29, 2023
b4eeaeb
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 29, 2023
6d63789
Update new test Runtime_83941 for merged groups
markples Mar 29, 2023
4dc6ecb
59444 - Changing methods to internal broke reflection calls. Use this
markples Mar 29, 2023
af00b08
Fix TestSummary.cs to handle invalid XML characters
markples Mar 30, 2023
6604ff3
Add RequiresProcessIsolation for existing issues.target entry (AOT co…
markples Mar 30, 2023
fd4456b
undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual…
markples Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion src/tests/Common/XUnitWrapperLibrary/TestSummary.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace XUnitWrapperLibrary;

public class TestSummary
Expand DownExpand Up@@ -43,7 +44,7 @@ public string ToXmlString()
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");

string outputElement = !string.IsNullOrWhiteSpace(Output)
? $"<output><![CDATA[{Output}]]></output>"
? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;

if (Exception is not null)
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,23 +3,25 @@
//

using System;
using Xunit;

public class Bug
{
public void Func(ref String str)
internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}

public void run()
internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@

using System;
using System.Diagnostics;
using Xunit;
namespace SetIPTest
{
public class SetIP
Expand All@@ -13,7 +14,7 @@ public SetIP()
}


public static void F()
internal static void F()
{
String s;
double d;
Expand DownExpand Up@@ -53,7 +54,8 @@ public static void F()
}


public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -11,6 +12,9 @@
.class public ILGEN_0x38e94b27 {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -13,7 +14,8 @@ public BB Method1(float param2)
return new BB();
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -15,7 +16,8 @@ BB Method3(float param2, ulong[] param3)

static bool Static1(float[] param1) { return false; }

public static int Main()
[Fact]
public static int TestEntryPoint()
{
try
{
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace JitTest
{
using System;

public class Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;

public class App
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Xunit;

namespace DefaultNamespace
{
Expand DownExpand Up@@ -135,7 +136,8 @@ public class Bug
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new Bug();
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
Expand All@@ -17,6 +18,9 @@
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -12,6 +13,9 @@
.class public ExceptionTest {

.method public static int32 main(){
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); Convert JIT\Regression tests to merged test groups by markples · Pull Request #83895 · dotnet/runtime · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce6b442
static-none uses args - add comment to RequiresProcessIsolation
markples Feb 3, 2023
638a77f
remove unused arg in Runtime_80731.il
markples Feb 3, 2023
4eb4696
Rewrite 4 IL tests to use newarr instead of args
markples Feb 3, 2023
ec49b49
[cs-main] remove unused args in C# tests
markples Feb 3, 2023
6ac253f
Update 9 tests with Main(args)
markples Dec 21, 2022
16d7c0a
Workaround: add RequiresProcessIsolation to LdfldaHack
markples Jan 9, 2023
8becab5
Move [Fact] to correct location in b12263
markples Jan 9, 2023
a6dcac8
In b06020, wrap $ class so that the C# wrapper can call it
markples Jan 9, 2023
997f40a
[ILTransform -public]
markples Feb 3, 2023
b4ebb25
[ILTransform -sr]
markples Feb 3, 2023
f7327fb
Manually rename b598031/test and test2.
markples Jan 5, 2023
59646e6
[ILTransform -prociso] Rerun for new tests
markples Feb 3, 2023
f720b0a
Wrappers
markples Dec 20, 2022
c086eb2
[ILTransform -ilfact]
markples Feb 8, 2023
97a58dc
Several fixes:
markples Dec 20, 2022
660e2e3
Fix TestSummary.cs to handle invalid XML characters
markples Feb 7, 2023
5f5f99b
Manual fix for reflection on rename in Runtime_64883
markples Feb 7, 2023
d3462a5
[ILTransform -a]
markples Feb 7, 2023
da5c0ed
Revert "Manual fix for reflection on rename in Runtime_64883"
markples Feb 8, 2023
88444fd
Manual fixes
markples Mar 14, 2023
3f795e4
Update test groupings and add extern aliases
markples Mar 14, 2023
c08dbb1
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 23, 2023
2a1d7da
Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.…
markples Mar 24, 2023
6989991
[ILTransform -public]
markples Mar 24, 2023
a5f722d
[ILTransform -prociso]
markples Mar 24, 2023
0631574
[ILTransform -ilfact] (undo GitHub_26491)
markples Mar 24, 2023
b87233b
Fix xUnit1003 in Runtime_83003
markples Mar 29, 2023
b4eeaeb
Merge remote-tracking branch 'dotnet/main' into merge6
markples Mar 29, 2023
6d63789
Update new test Runtime_83941 for merged groups
markples Mar 29, 2023
4dc6ecb
59444 - Changing methods to internal broke reflection calls. Use this
markples Mar 29, 2023
af00b08
Fix TestSummary.cs to handle invalid XML characters
markples Mar 30, 2023
6604ff3
Add RequiresProcessIsolation for existing issues.target entry (AOT co…
markples Mar 30, 2023
fd4456b
undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual…
markples Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion src/tests/Common/XUnitWrapperLibrary/TestSummary.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace XUnitWrapperLibrary;

public class TestSummary
Expand DownExpand Up@@ -43,7 +44,7 @@ public string ToXmlString()
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");

string outputElement = !string.IsNullOrWhiteSpace(Output)
? $"<output><![CDATA[{Output}]]></output>"
? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;

if (Exception is not null)
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,23 +3,25 @@
//

using System;
using Xunit;

public class Bug
{
public void Func(ref String str)
internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}

public void run()
internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@

using System;
using System.Diagnostics;
using Xunit;
namespace SetIPTest
{
public class SetIP
Expand All@@ -13,7 +14,7 @@ public SetIP()
}


public static void F()
internal static void F()
{
String s;
double d;
Expand DownExpand Up@@ -53,7 +54,8 @@ public static void F()
}


public static int Main()
[Fact]
public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -11,6 +12,9 @@
.class public ILGEN_0x38e94b27 {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -13,7 +14,8 @@ public BB Method1(float param2)
return new BB();
}

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;
Expand All@@ -15,7 +16,8 @@ BB Method3(float param2, ulong[] param3)

static bool Static1(float[] param1) { return false; }

public static int Main()
[Fact]
public static int TestEntryPoint()
{
try
{
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace JitTest
{
using System;

public class Test
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
using System;

public class App
{
public static int Main()
[Fact]
public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Xunit;

namespace DefaultNamespace
{
Expand DownExpand Up@@ -135,7 +136,8 @@ public class Bug
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};

public static int Main()
[Fact]
public static int TestEntryPoint()
{
new Bug();
return 100;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
Expand All@@ -17,6 +18,9 @@
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -13,6 +14,9 @@
.class public _simple {

.method public static int32 main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 100

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

.assembly extern legacy library mscorlib {}
.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
Expand All@@ -12,6 +13,9 @@
.class public ExceptionTest {

.method public static int32 main(){
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading