mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
C#: Use TEST_TEMPDIR when set for test files.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user