diff options
-rw-r--r-- | tests/unit/scripting.tcl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index 02eecefd7..1b8ae6df8 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -735,6 +735,12 @@ start_server {tags {"scripting"}} { return redis.acl_check_cmd('invalid-cmd','arg') } 0} } + + test "Binary code loading failed" { + assert_error {ERR *attempt to call a nil value*} {run_script { + return loadstring(string.dump(function() return 1 end))() + } 0} + } } # Start a new server since the last test in this stanza will kill the |