From: Tarek Mahmoud Sayed Date: Mon, 29 Mar 2021 00:24:24 +0000 (-0700) Subject: Use random file names in the TZ tests (#50339) X-Git-Tag: submit/tizen/20210909.063632~2374 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b88f89593d985b625a4fcdadbec6615ad2554d7;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Use random file names in the TZ tests (#50339) --- diff --git a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs index 05ae478..0e83906 100644 --- a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs +++ b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs @@ -2469,7 +2469,7 @@ namespace System.Tests [InlineData("<+00>0<+01>,A/0,J365/25", 0, 0, false)] public static void NJulianRuleTest(string posixRule, int dayNumber, int monthNumber, bool shouldSucceed) { - string zoneFilePath = Path.GetTempPath() + "dotnet_tz"; + string zoneFilePath = Path.GetTempPath() + Path.GetRandomFileName(); using (FileStream fs = new FileStream(zoneFilePath, FileMode.Create)) { fs.Write(timeZoneFileContents.AsSpan());