From bb0992cf76cf377265d9a7fe638b0c879412e2c1 Mon Sep 17 00:00:00 2001 From: joe Date: Tue, 22 May 2012 14:43:58 +0000 Subject: * 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 --- test/uri-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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)); -- cgit v1.2.1