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

skip a test that uses +inf on valgrind (#7440)

On some platforms strtold("+inf") with valgrind returns a non-inf result

[err]: INCRBYFLOAT does not allow NaN or Infinity in tests/unit/type/incr.tcl
Expected 'ERR*would produce*' to equal or match '1189731495357231765085759.....'
parent 8e76e134
...@@ -130,6 +130,8 @@ start_server {tags {"incr"}} { ...@@ -130,6 +130,8 @@ start_server {tags {"incr"}} {
format $err format $err
} {WRONGTYPE*} } {WRONGTYPE*}
# On some platforms strtold("+inf") with valgrind returns a non-inf result
if {!$::valgrind} {
test {INCRBYFLOAT does not allow NaN or Infinity} { test {INCRBYFLOAT does not allow NaN or Infinity} {
r set foo 0 r set foo 0
set err {} set err {}
...@@ -139,6 +141,7 @@ start_server {tags {"incr"}} { ...@@ -139,6 +141,7 @@ start_server {tags {"incr"}} {
# there is no way to increment / decrement by infinity nor to # there is no way to increment / decrement by infinity nor to
# perform divisions. # perform divisions.
} {ERR*would produce*} } {ERR*would produce*}
}
test {INCRBYFLOAT decrement} { test {INCRBYFLOAT decrement} {
r set foo 1 r set foo 1
......
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