Unverified Commit c3b7bde9 authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

fix false valgrind error on new hash test (#11200)

New test fails on valgrind because strtold("+inf") with valgrind returns a non-inf result
same thing is done in incr.tcl.
parent bed6d759
...@@ -819,8 +819,11 @@ start_server {tags {"hash"}} { ...@@ -819,8 +819,11 @@ start_server {tags {"hash"}} {
set _ $k set _ $k
} {ZIP_INT_8B 127 ZIP_INT_16B 32767 ZIP_INT_32B 2147483647 ZIP_INT_64B 9223372036854775808 ZIP_INT_IMM_MIN 0 ZIP_INT_IMM_MAX 12} } {ZIP_INT_8B 127 ZIP_INT_16B 32767 ZIP_INT_32B 2147483647 ZIP_INT_64B 9223372036854775808 ZIP_INT_IMM_MIN 0 ZIP_INT_IMM_MAX 12}
test {HINCRBYFLOAT does not allow NaN or Infinity} { # On some platforms strtold("+inf") with valgrind returns a non-inf result
assert_error "*value is NaN or Infinity*" {r hincrbyfloat hfoo field +inf} if {!$::valgrind} {
assert_equal 0 [r exists hfoo] test {HINCRBYFLOAT does not allow NaN or Infinity} {
assert_error "*value is NaN or Infinity*" {r hincrbyfloat hfoo field +inf}
assert_equal 0 [r exists hfoo]
}
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment