diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-20 05:49:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:47 -0500 |
commit | a4428c814ad90884ac0b442233d318f061f221bc (patch) | |
tree | 65311b5548233974d0fc54b6c1f74825ffb2a6c9 /source4/torture | |
parent | d6c20a5c8a50338535efcf41fb8cb1f8dcf87757 (diff) | |
download | samba-a4428c814ad90884ac0b442233d318f061f221bc.tar.gz samba-a4428c814ad90884ac0b442233d318f061f221bc.tar.bz2 samba-a4428c814ad90884ac0b442233d318f061f221bc.zip |
r8634: we are still getting occasional test failures due to disk space
changing. I suspect it is a signed/unsigned problem with the approx
equal test. Hopefully this will fix it.
(This used to be commit 668dd29259198698c556c50e28a9070085db89ea)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/raw/qfsinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/raw/qfsinfo.c b/source4/torture/raw/qfsinfo.c index 1237ddf7b1..7576c4b22a 100644 --- a/source4/torture/raw/qfsinfo.c +++ b/source4/torture/raw/qfsinfo.c @@ -75,7 +75,7 @@ static union smb_fsinfo *find(const char *name) ret = False; \ }} while(0) -#define VAL_APPROX_EQUAL(n1, v1, n2, v2) do {if (ABS(s1->n1.out.v1 - s2->n2.out.v2) > 0.1*s1->n1.out.v1) { \ +#define VAL_APPROX_EQUAL(n1, v1, n2, v2) do {if (ABS((int)(s1->n1.out.v1) - (int)(s2->n2.out.v2)) > 0.1*s1->n1.out.v1) { \ printf("%s/%s [%u] != %s/%s [%u] at %s(%d)\n", \ #n1, #v1, (uint_t)s1->n1.out.v1, \ #n2, #v2, (uint_t)s2->n2.out.v2, \ |