Skip to content

Commit 70e9368

Browse files
committed
Add noprint add as the first plugin test
1 parent 11506f8 commit 70e9368

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

code/tests/rlbox_glue/test_sandbox_glue.inc.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,15 @@ TEST_CASE("sandbox glue tests " TestName, "[sandbox_glue_tests]")
153153
#endif
154154

155155
SECTION("test simple function invocation") // NOLINT
156+
{
157+
const long val1 = 20;
158+
const long val2 = 22;
159+
tainted<long, TestType> a = val1;
160+
auto ret2 = sandbox.invoke_sandbox_function(simpleAddNoPrintTest, a, val2);
161+
REQUIRE(ret2.UNSAFE_unverified() == (val1 + val2));
162+
}
163+
164+
SECTION("test simple function invocation with print") // NOLINT
156165
{
157166
const int val1 = 20;
158167
const int val2 = 22;

0 commit comments

Comments
 (0)