Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
98bd223e
Commit
98bd223e
authored
Aug 17, 2014
by
Paddy Byers
Committed by
antirez
Sep 01, 2014
Browse files
Add regression test for issue #1939
parent
b790e1d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/scripting.tcl
View file @
98bd223e
...
...
@@ -363,6 +363,18 @@ start_server {tags {"scripting"}} {
catch
{
r eval
{
return
"hello"
}
-12
}
e
set e
}
{
ERR Number of keys can't be negative
}
test
{
Correct handling of reused argv
(
issue #1939
)}
{
r eval
{
for i = 0, 10 do
redis.call
(
'SET', 'a', '1'
)
redis.call
(
'MGET', 'a', 'b', 'c'
)
redis.call
(
'EXPIRE', 'a', 0
)
redis.call
(
'GET', 'a'
)
redis.call
(
'MGET', 'a', 'b', 'c'
)
end
}
0
}
}
# Start a new server since the last test in this stanza will kill the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment