From ac0b77540da724e91c15b72925011ba307eb4193 Mon Sep 17 00:00:00 2001 From: Nik Date: Sat, 17 Dec 2022 22:35:03 +0100 Subject: [PATCH] tests: Fixed more tests --- tests/includes/source/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/includes/source/main.cpp b/tests/includes/source/main.cpp index 9359497..102062b 100644 --- a/tests/includes/source/main.cpp +++ b/tests/includes/source/main.cpp @@ -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; -} \ No newline at end of file +}