tests: Fixed building of unit tests

This commit is contained in:
Nik
2022-12-17 22:28:52 +01:00
committed by GitHub
parent 110b498d7b
commit 683e78d9c3

View File

@@ -41,10 +41,12 @@ int main(int argc, char **argv) {
{
constexpr auto DummyPragmaHandler = [](const auto&, const auto&){ return true; };
runtime.setDataSource([&](pl::u64 address, pl::u8 *data, size_t size) {
testFile.seek(address);
testFile.readBuffer(data, size);
}, 0x00, testFile.getSize());
runtime.setDataSource(0x00, testFile.getSize(),
[&](pl::u64 address, pl::u8 *data, size_t size) {
testFile.seek(address);
testFile.readBuffer(data, size);
}
);
runtime.setDangerousFunctionCallHandler([]{ return true; });
runtime.setIncludePaths({ includePath });
runtime.addPragma("MIME", DummyPragmaHandler);
@@ -74,4 +76,4 @@ int main(int argc, char **argv) {
}
return EXIT_SUCCESS;
}
}