diff options
author | John Gallagher <[email protected]> | 2018-06-15 15:10:42 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-06-15 15:10:42 -0700 |
commit | 917f475fba03ceb4e11c7aa35aff09c47a6c596e (patch) | |
tree | 92ce7d3981d5ca93e1bbcb42665e9ecc3e1ed1ed /tests/zfs-tests | |
parent | 7b98f0d91f09df90218322df5cf1b8ba7928972e (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]
Reviewed-by: Sara Hartse <[email protected]>
Signed-off-by: John Gallagher <[email protected]>
External-issue: LX-1085
Closes #7618
Diffstat (limited to 'tests/zfs-tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/channel_program/lua_core/tst.memory_limit.ksh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |