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
7c8ddab4
Commit
7c8ddab4
authored
Feb 22, 2017
by
antirez
Browse files
Test: fix conditional execution of HINCRBYFLOAT representation test.
parent
06263485
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/type/hash.tcl
View file @
7c8ddab4
...
...
@@ -525,7 +525,7 @@ start_server {tags {"hash"}} {
# 1.23 cannot be represented correctly with 64 bit doubles, so we skip
# the test, since we are only testing pretty printing here and is not
# a bug if the program outputs things like 1.299999...
if
{
!$::valgrind
|| !
[
string match *x86_64*
[
exec uname -a
]]}
{
if
{
!$::valgrind
&&
[
string match *x86_64*
[
exec uname -a
]]}
{
test
{
Test HINCRBYFLOAT for correct float representation
(
issue #2846
)}
{
r del myhash
assert
{[
r hincrbyfloat myhash float 1.23
]
eq
{
1.23
}}
...
...
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