mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
BITCOUNT regression test for #582 fixed for 32 bit target.
Bug #582 was not present in 32 bit builds of Redis as getObjectFromLong() will return an error for overflow. This commit makes sure that the test does not fail because of the error returned when running against 32 bit builds.
This commit is contained in:
parent
749aac72ad
commit
74e57d0ece
@ -76,7 +76,12 @@ start_server {tags {"bitops"}} {
|
|||||||
test {BITCOUNT regression test for github issue #582} {
|
test {BITCOUNT regression test for github issue #582} {
|
||||||
r del str
|
r del str
|
||||||
r setbit foo 0 1
|
r setbit foo 0 1
|
||||||
r bitcount foo 0 4294967296
|
if {[catch {r bitcount foo 0 4294967296} e]} {
|
||||||
|
assert_match {*ERR*out of range*} $e
|
||||||
|
set _ 1
|
||||||
|
} else {
|
||||||
|
set e
|
||||||
|
}
|
||||||
} {1}
|
} {1}
|
||||||
|
|
||||||
test {BITOP NOT (empty string)} {
|
test {BITOP NOT (empty string)} {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user