mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-14 17:43:19 +01:00
Assert that the process is running before the Linux links test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user