Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to shorten the log file name to avoid TooLongPath on Windows (#2272)
- Loading branch information
1 parent
401030e
commit e2de0ef
Showing
2 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/BenchmarkDotNet.IntegrationTests/PathTooLongTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using BenchmarkDotNet.Attributes; | ||
using BenchmarkDotNet.Tests.XUnit; | ||
|
||
namespace BenchmarkDotNet.IntegrationTests | ||
{ | ||
public class PathTooLongTests : BenchmarkTestExecutor | ||
{ | ||
[FactWindowsOnly("Testing Windows long path limitation")] | ||
public void PathTooLongTest() => | ||
CanExecute< | ||
VeryLongName012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789>(); | ||
|
||
[DryJob] | ||
public class | ||
VeryLongName012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 | ||
{ | ||
[Benchmark] | ||
public void Foo() { } | ||
} | ||
} | ||
} |