summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2012-05-22 14:43:58 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2012-05-22 14:43:58 +0000
commitbb0992cf76cf377265d9a7fe638b0c879412e2c1 (patch)
tree269a70542c0f5d400b32e554aec6920a6b05b5f7 /test
parent7c3f1ab3e2c74a4f3200a91df24d30bd06f2c334 (diff)
downloadneon-bb0992cf76cf377265d9a7fe638b0c879412e2c1.tar.gz
* test/uri-tests.c (cmp): Don't depend on exact magnitude of *cmp.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1885 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'test')
-rw-r--r--test/uri-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/uri-tests.c b/test/uri-tests.c
index 9e0d27b..7416b93 100644
--- a/test/uri-tests.c
+++ b/test/uri-tests.c
@@ -222,7 +222,7 @@ static int cmp(void)
("'%s' and '%s' did not compare as different",
diff[n].left, diff[n].right));
- ONV(r1 + r2 != 0,
+ ONV(((r1 > 0) != (r2 < 0) || (r1 < 0) != (r2 > 0)),
("'%s' and '%s' did not compare reflexively (%d vs %d)",
diff[n].left, diff[n].right, r1, r2));