mirror of
https://github.com/luau-lang/luau.git
synced 2025-01-19 17:28:06 +00:00
can CI handle this?
This commit is contained in:
parent
79854143e4
commit
c592f50e20
1 changed files with 4 additions and 1 deletions
|
@ -50,6 +50,8 @@ public:
|
|||
std::string luauDirAbs;
|
||||
|
||||
std::optional<std::string> cwd = getCurrentWorkingDirectory();
|
||||
if (cwd)
|
||||
printf("%s\n", (*cwd).c_str());
|
||||
REQUIRE_MESSAGE(cwd, "Error getting Luau path");
|
||||
std::replace((*cwd).begin(), (*cwd).end(), '\\', '/');
|
||||
luauDirAbs = *cwd;
|
||||
|
@ -209,6 +211,7 @@ TEST_CASE("PathNormalization")
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE_FIXTURE(ReplWithPathFixture, "RequireSimpleRelativePath")
|
||||
{
|
||||
ScopedFastFlag sff{FFlag::LuauUpdatedRequireByStringSemantics, true};
|
||||
|
@ -383,7 +386,7 @@ TEST_CASE_FIXTURE(ReplWithPathFixture, "RequirePathWithAlias")
|
|||
TEST_CASE_FIXTURE(ReplWithPathFixture, "RequirePathWithParentAlias")
|
||||
{
|
||||
ScopedFastFlag sff{FFlag::LuauUpdatedRequireByStringSemantics, true};
|
||||
std::string path = getLuauDirectory(PathType::Relative) + "/tests/require/with_config/src/parent_alias_requirer";
|
||||
std::string path = getLuauDirectory(PathType::Relative) + "/tests/require/with_config/src/parent_alias_requirer.luau";
|
||||
runProtectedRequire(path);
|
||||
assertOutputContainsAll({"true", "result from other_dependency"});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue