test: make prerequisite lanes fail honestly
This commit is contained in:
parent
dfc841b779
commit
6faeb4a103
113 changed files with 424 additions and 336 deletions
|
|
@ -133,7 +133,7 @@ public sealed class LauncherProfileHardeningTests : IDisposable
|
|||
{
|
||||
if (!OperatingSystem.IsLinux())
|
||||
{
|
||||
return;
|
||||
throw new PlatformNotSupportedException("Lane=Linux requires a native Linux host.");
|
||||
}
|
||||
|
||||
File.WriteAllText(_filePath, """{"version":1,"servers":[]}""");
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ public sealed class LauncherProfileStoreTests : IDisposable
|
|||
// OperatingSystem.IsLinux() early-return pattern (e.g.
|
||||
// HeadlessCredentialResolverTests.LinuxRejectsGroupOrOtherCredentialPermissions).
|
||||
if (!OperatingSystem.IsLinux())
|
||||
return;
|
||||
throw new PlatformNotSupportedException("Lane=Linux requires a native Linux host.");
|
||||
|
||||
var store = new LauncherProfileStore(_filePath);
|
||||
store.Load();
|
||||
|
|
@ -370,7 +370,7 @@ public sealed class LauncherProfileStoreTests : IDisposable
|
|||
// serialization or post-create chmod can occur. This replaces the
|
||||
// old timing-only poller, which could miss the vulnerable window.
|
||||
if (!OperatingSystem.IsLinux())
|
||||
return;
|
||||
throw new PlatformNotSupportedException("Lane=Linux requires a native Linux host.");
|
||||
|
||||
string tempPath = _filePath + ".tmp";
|
||||
using FileStream stream = LauncherProfileStore.CreateCredentialTempFile(tempPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue