test: make prerequisite lanes fail honestly

This commit is contained in:
Erik 2026-08-18 12:09:41 +02:00
parent dfc841b779
commit 6faeb4a103
113 changed files with 424 additions and 336 deletions

View file

@ -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":[]}""");

View file

@ -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);