diff --git a/src/BizHawk.Tests/BizHawk.Tests.csproj b/src/BizHawk.Tests/BizHawk.Tests.csproj
index 162f96c3e0..f1f8c66348 100644
--- a/src/BizHawk.Tests/BizHawk.Tests.csproj
+++ b/src/BizHawk.Tests/BizHawk.Tests.csproj
@@ -5,6 +5,7 @@
+ $(DefineConstants);SKIP_PLATFORM_TESTS
$(ProjectDir)../../test_output
diff --git a/src/BizHawk.Tests/PlatformTests/Common.PathExtensions/PathExtensionTests.cs b/src/BizHawk.Tests/PlatformTests/Common.PathExtensions/PathExtensionTests.cs
index 21fe9225a0..0726ec3be3 100644
--- a/src/BizHawk.Tests/PlatformTests/Common.PathExtensions/PathExtensionTests.cs
+++ b/src/BizHawk.Tests/PlatformTests/Common.PathExtensions/PathExtensionTests.cs
@@ -13,6 +13,8 @@ namespace BizHawk.Tests.Common.PathExtensions
[TestMethod]
public void TestNullability()
{
+ PlatformTestUtils.RunEverywhere();
+
var p = OSTailoredCode.IsUnixHost ? "/" : @"C:\";
Assert.IsFalse(PE.IsSubfolderOf(childPath: null, parentPath: p));
diff --git a/src/BizHawk.Tests/PlatformTests/PlatformTestUtils.cs b/src/BizHawk.Tests/PlatformTests/PlatformTestUtils.cs
index 8e394d0422..90977089e3 100644
--- a/src/BizHawk.Tests/PlatformTests/PlatformTestUtils.cs
+++ b/src/BizHawk.Tests/PlatformTests/PlatformTestUtils.cs
@@ -8,17 +8,36 @@ namespace BizHawk.Tests
{
public static void OnlyRunOnRealUnix()
{
+#if SKIP_PLATFORM_TESTS
+ Assert.Inconclusive();
+#else
if (!OSTailoredCode.IsUnixHost || OSTailoredCode.IsWSL) Assert.Inconclusive();
+#endif
}
public static void OnlyRunOnUnix()
{
+#if SKIP_PLATFORM_TESTS
+ Assert.Inconclusive();
+#else
if (!OSTailoredCode.IsUnixHost) Assert.Inconclusive();
+#endif
}
public static void OnlyRunOnWindows()
{
+#if SKIP_PLATFORM_TESTS
+ Assert.Inconclusive();
+#else
if (OSTailoredCode.IsUnixHost) Assert.Inconclusive();
+#endif
+ }
+
+ public static void RunEverywhere()
+ {
+#if SKIP_PLATFORM_TESTS
+ Assert.Inconclusive();
+#endif
}
}
}