Skip to content
Open
Changes from all commits
Commits
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
39 changes: 30 additions & 9 deletions src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,22 @@
return;

string extractionDir = match.Groups[1].Value;
try
for (int i = 0; i < 3; i++)
{
Directory.Delete(extractionDir, true);
}
catch (Exception ex)
{
Console.WriteLine($"Failed to delete extraction directory '{extractionDir}': {ex}");
try
{
if (Directory.Exists(extractionDir))
Directory.Delete(extractionDir, true);
break;
}
catch (Exception ex) when (i < 2)

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 release Installer_Build_And_Test)

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 release Installer_Build_And_Test)

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Debug Installer_Build_And_Test)

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used

Check failure on line 61 in src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs

View check run for this annotation

Azure Pipelines / runtime

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs#L61

src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs(61,34): error CS0168: (NETCORE_ENGINEERING_TELEMETRY=Build) The variable 'ex' is declared but never used
{
System.Threading.Thread.Sleep(100);
}
catch (Exception ex)
{
Console.WriteLine($"Failed to delete extraction directory '{extractionDir}': {ex}");
}
}
}

Expand Down Expand Up @@ -187,10 +196,22 @@
// This prevents git-clone of the repo from failing if long-file-name support is not enabled on windows.
var longDirName = "This is a really, really, really, really, really, really, really, really, really, really, really, really, really, really long file name for punctuation";
var longDirPath = Path.Combine(directory, "Sentence", longDirName);
Directory.CreateDirectory(longDirPath);
using (var writer = File.CreateText(Path.Combine(longDirPath, "word")))

for (int i = 0; i < 3; i++)
{
writer.Write(".");
try
{
Directory.CreateDirectory(longDirPath);
using (var writer = File.CreateText(Path.Combine(longDirPath, "word")))
{
writer.Write(".");
}
break;
}
catch (IOException) when (i < 2)
{
System.Threading.Thread.Sleep(100);
}
}
}
}
Expand Down
Loading