tests: Fixed more tests

This commit is contained in:
Nik
2022-12-17 22:35:03 +01:00
committed by GitHub
parent 683e78d9c3
commit ac0b77540d

View File

@@ -34,9 +34,11 @@ int main(int argc, char **argv) {
return false;
};
runtime.setDataSource([&](pl::u64 address, pl::u8 *data, size_t size) {
pl::core::err::E0011.throwError("Include files should never read from memory directly!");
}, 0x00, 0x100000);
runtime.setDataSource(0x00, 0x100000,
[&](pl::u64 address, pl::u8 *data, size_t size) {
pl::core::err::E0011.throwError("Include files should never read from memory directly!");
}
);
runtime.setDangerousFunctionCallHandler([]{ return true; });
runtime.setIncludePaths({ includePath });
@@ -73,4 +75,4 @@ int main(int argc, char **argv) {
}
return EXIT_SUCCESS;
}
}