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
a23502e5
Commit
a23502e5
authored
Aug 17, 2014
by
Paddy Byers
Committed by
antirez
Sep 01, 2014
Browse files
Add regression test for issue #1939
parent
86cde329
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/scripting.tcl
View file @
a23502e5
...
@@ -363,6 +363,18 @@ start_server {tags {"scripting"}} {
...
@@ -363,6 +363,18 @@ start_server {tags {"scripting"}} {
catch
{
r eval
{
return
"hello"
}
-12
}
e
catch
{
r eval
{
return
"hello"
}
-12
}
e
set e
set e
}
{
ERR Number of keys can't be negative
}
}
{
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
# 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