diff --git a/tests/RequireByString.test.cpp b/tests/RequireByString.test.cpp index ad35b491..0e5ad4ff 100644 --- a/tests/RequireByString.test.cpp +++ b/tests/RequireByString.test.cpp @@ -56,15 +56,20 @@ public: for (int i = 0; i < 20; ++i) { - if (isDirectory(luauDirAbs + "/Luau/tests") || isDirectory(luauDirAbs + "/Client/Luau/tests")) + bool engineTestDir = isDirectory(luauDirAbs + "/Client/Luau/tests"); + bool luauTestDir = isDirectory(luauDirAbs + "/luau/tests"); + if (engineTestDir || luauTestDir) { - if (isDirectory(luauDirAbs + "/Client/Luau/tests")) + if (engineTestDir) { - luauDirRel += "/Client"; - luauDirAbs += "/Client"; + luauDirRel += "/Client/Luau"; + luauDirAbs += "/Client/Luau"; + } + else + { + luauDirRel += "/luau"; + luauDirAbs += "/luau"; } - luauDirRel += "/Luau"; - luauDirAbs += "/Luau"; if (type == PathType::Relative) return luauDirRel; @@ -209,7 +214,6 @@ TEST_CASE("PathNormalization") } } -#if 0 TEST_CASE_FIXTURE(ReplWithPathFixture, "RequireSimpleRelativePath") { @@ -390,6 +394,4 @@ TEST_CASE_FIXTURE(ReplWithPathFixture, "RequirePathWithParentAlias") assertOutputContainsAll({"true", "result from other_dependency"}); } -#endif - TEST_SUITE_END();