Assert that the process is running before the Linux links test

This commit is contained in:
Jordan Dominion
2023-12-04 22:26:59 -05:00
parent 6d6645e9a2
commit 081b8d19a6
@@ -680,7 +680,9 @@ namespace Tgstation.Server.Tests.Live.Instance
var pid = proc.Id;
var foundLivePath = false;
var allPaths = new List<string>();
foreach (var fd in Directory.EnumerateFiles($"/proc/{pid}/fd"))
Assert.IsFalse(proc.HasExited);
foreach (var fd in Directory.GetFiles($"/proc/{pid}/fd"))
{
var sb = new StringBuilder(UInt16.MaxValue);
if (Syscall.readlink(fd, sb) == -1)