Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e26214c
Instrumentation for #116276
jkotas Jun 8, 2025
90192ab
Update src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs
jkotas Jun 8, 2025
318d8ed
Update src/tests/Common/XUnitWrapperGenerator/ITestInfo.cs
jkotas Jun 8, 2025
67aca19
Update src/tests/Common/XUnitWrapperGenerator/ITestInfo.cs
jkotas Jun 8, 2025
e80cd16
Merge branch 'main' into instrumentation-116276
jkotas Jun 8, 2025
0ae7d68
Update src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs
jkotas Jun 9, 2025
83e8e7f
Update src/tests/Common/XUnitWrapperGenerator/ITestInfo.cs
jkotas Jun 9, 2025
c684976
Update src/tests/Common/XUnitWrapperGenerator/ITestInfo.cs
jkotas Jun 9, 2025
00177b2
Update src/tests/Common/XUnitWrapperGenerator/ITestInfo.cs
jkotas Jun 9, 2025
72c6cc5
Update src/tests/Common/XUnitWrapperGenerator/ITestInfo.cs
jkotas Jun 11, 2025
2b8b1a7
Merge branch 'main' into instrumentation-116276
jkotas Jun 12, 2025
6a29db8
Update src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs
jkotas Jun 13, 2025
7e126c7
Update src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs
jkotas Jun 13, 2025
f191d6c
Update src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs
jkotas Jun 15, 2025
196371f
More
jkotas Jun 17, 2025
d0f44a6
Merge branch 'main' into instrumentation-116276
jkotas Jun 19, 2025
476121b
Add missing RemoteExecutor.IsSupported
jkotas Jun 19, 2025
51ce810
Update src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs
jkotas Jun 24, 2025
5c91d95
Apply suggestions from code review
jkotas Jun 24, 2025
fb76b2c
Merge branch 'main' into instrumentation-116276
jkotas Jun 24, 2025
8b85fbc
Try fixing native AOT outerloop runs
MichalStrehovsky Jun 24, 2025
a041f70
Stresslog
jkotas Jun 24, 2025
8817c5f
Merge branch 'main' into instrumentation-116276
jkotas Jun 25, 2025
208285c
Merge branch 'main' into instrumentation-116276
jkotas Jun 27, 2025
87e02ce
Update src/coreclr/nativeaot/Runtime/startup.cpp
jkotas Jun 28, 2025
8554060
Update src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs
jkotas Jun 29, 2025
50fddbc
Merge branch 'main' into instrumentation-116276
jkotas Jun 30, 2025
2965834
More instrumentation
jkotas Jun 30, 2025
0d7f053
Crash at the end of the test
jkotas Jul 1, 2025
8466456
Earlier
jkotas Jul 4, 2025
29cb3ad
Later
jkotas Jul 5, 2025
6e8634d
More
jkotas Jul 6, 2025
0c1a3ab
More
jkotas Jul 7, 2025
4def06b
[NativeAOT] Fix floating pointer register unwinding
jkotas Jul 8, 2025
4855d76
Apply suggestions from code review
jkotas Jul 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -889,9 +889,14 @@ public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringS
{
// Overflow if signs of operands was different and result's sign was opposite.
// >> 63 gives the sign bit (either 64 1's or 64 0's).
ThrowHelper.ThrowOverflowException_TimeSpanTooLong();
ThrowOverflowException_TimeSpanTooLong(t1, t2);
}
return new TimeSpan(result);

static void ThrowOverflowException_TimeSpanTooLong(TimeSpan t1, TimeSpan t2)
{
throw new OverflowException(t1.ToString() + " " + t2.ToString());
}
}

public static TimeSpan operator +(TimeSpan t) => t;
Expand Down
12 changes: 12 additions & 0 deletions src/tests/Common/XUnitWrapperGenerator/ITestInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,15 @@ public CodeBuilder WrapTestExecutionWithReporting(CodeBuilder testExecutionExpre
+ $" || {_filterLocalIdentifier}.ShouldRunTest(@\"{test.ContainingType}.{test.Method}\","
+ $" {test.TestNameExpression}))");

bool interestingTest = test.TestNameExpression.Contains("Runtime_108612") || test.TestNameExpression.Contains("b26496");

using (builder.NewBracesScope())
{
if (interestingTest)
{
builder.AppendLine("for (int abcd = 0; abcd < 100; abcd++) { try {");
}

builder.AppendLine($"System.TimeSpan testStart = stopwatch.Elapsed;");
builder.AppendLine("try");

Expand Down Expand Up @@ -496,6 +503,11 @@ public CodeBuilder WrapTestExecutionWithReporting(CodeBuilder testExecutionExpre
+ $" tempLogSw,"
+ $" statsCsvSw);");
}

if (interestingTest)
{
builder.AppendLine("} catch (System.Exception eee) when (FailNow(eee)) { } bool FailNow(Exception eee) { System.Environment.FailFast(\"FailNow\", eee); return true; } }");
}
}

builder.AppendLine("else");
Expand Down
Loading