Comment-out unit test cases which assume too much about filesystem

This commit is contained in:
YoshiRulz 2024-06-11 16:31:48 +10:00
parent 155ea9ac79
commit bfc03434fa
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 0 deletions

View File

@ -37,8 +37,10 @@ namespace BizHawk.Tests.Common.PathExtensions
[DataRow(true, "/usr", "/usr")]
[DataRow(true, "/usr", "/usr/")]
[DataRow(false, "/etc/rmdir", "/etc/rm")] // not naive StartsWith; these don't exist but the implementation uses `realpath -m` so they will be classed as two real and distinct dirs
#if false // don't work on NixOS and probably other distros, presumably all 32-bit distros
[DataRow(true, "/usr/lib64", "/usr/lib")] // symlink to same dir
[DataRow(true, "/usr/lib64/gconv", "/usr/lib")] // same symlink, checking child
#endif
public void TestIsSubfolderOfUnix(bool expectedIsSubfolder, string childPath, string parentPath)
{
PlatformTestUtils.OnlyRunOnRealUnix();