From 917f475fba03ceb4e11c7aa35aff09c47a6c596e Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Fri, 15 Jun 2018 15:10:42 -0700 Subject: Add tunables for channel programs This patch adds tunables for modifying the maximum memory limit and maximum instruction limit that can be specified when running a channel program. Reviewed-by: Matthew Ahrens Reviewed-by: Brian Behlendorf Signed-off-by: John Gallagher External-issue: LX-1085 Closes #7618 --- .../tests/functional/channel_program/lua_core/tst.memory_limit.ksh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/zfs-tests') diff --git a/tests/zfs-tests/tests/functional/channel_program/lua_core/tst.memory_limit.ksh b/tests/zfs-tests/tests/functional/channel_program/lua_core/tst.memory_limit.ksh index dbac58387..288577568 100755 --- a/tests/zfs-tests/tests/functional/channel_program/lua_core/tst.memory_limit.ksh +++ b/tests/zfs-tests/tests/functional/channel_program/lua_core/tst.memory_limit.ksh @@ -61,12 +61,12 @@ log_mustnot_checkerror_program "Memory limit exhausted" -m 1 $TESTPOOL - <<-EOF return s EOF -log_mustnot_checkerror_program "Invalid memory limit" \ - -m 1000000000000 $TESTPOOL - <<-EOF +log_mustnot_checkerror_program "Invalid instruction or memory limit" \ + -m 200000000 $TESTPOOL - <<-EOF return 1; EOF -log_mustnot_checkerror_program "Invalid memory limit" \ +log_mustnot_checkerror_program "Return value too large" \ -m 9223372036854775808 $TESTPOOL - <<-EOF return 1; EOF -- cgit v1.2.3