tests: Include patterns folder as include path to support import * from X as Y

#426
This commit is contained in:
WerWolv
2025-08-02 19:29:16 +02:00
parent a75a7a5b98
commit 5ed64f9f08

View File

@@ -72,7 +72,7 @@ int main(int argc, char **argv) {
}
runtime.setDangerousFunctionCallHandler([]{ return true; });
runtime.setIncludePaths({ includePath });
runtime.setIncludePaths({ includePath, patternFilePath.parent_path() });
runtime.addPragma("MIME", DummyPragmaHandler);
runtime.addPragma("description", DescPragmaHandler);
runtime.addDefine("__PL_UNIT_TESTS__");