Skip to content

Commit

Permalink
C#: Use TEST_TEMPDIR when set for test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnebel committed Dec 9, 2024
1 parent baa248c commit 5624a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csharp/extractor/Semmle.Util.Tests/LongPaths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace SemmleTests.Semmle.Util
/// </summary>
public sealed class LongPaths : IDisposable
{
private static readonly string tmpDir = Path.GetTempPath();
private static readonly string tmpDir = Environment.GetEnvironmentVariable("TEST_TMPDIR") ?? Path.GetTempPath();
private static readonly string shortPath = Path.Combine(tmpDir, "test.txt");
private static readonly string longPath = Path.Combine(tmpDir, "aaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"ccccccccccccccccccccccccccccccc", "ddddddddddddddddddddddddddddddddddddd", "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "fffffffffffffffffffffffffffffffff",
Expand Down

0 comments on commit 5624a77

Please sign in to comment.