commit 5691d33aa902c7e8ffbada35d0529c02ae84eb96
parent b447971a2cf98c080e4ee803ea4936d8fd3ba6e3
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Wed, 18 Apr 2018 17:46:32 +0200
Replace assert by CHK in test code.
To allow error detection in Release.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test_senc2d_sample_enclosure.c b/src/test_senc2d_sample_enclosure.c
@@ -103,19 +103,19 @@ main(int argc, char** argv)
if(eq_eps(attrib.value[n], 0, FLT_EPSILON)
|| eq_eps(attrib.value[n], 1, FLT_EPSILON))
c++;
- ASSERT(c == 1);
+ CHK(c == 1);
S2D(primitive_get_attrib(&prim, S2D_GEOMETRY_NORMAL, s, &attrib));
c = 0;
FOR_EACH(n, 0, 2)
if(eq_eps(attrib.value[n], -1, FLT_EPSILON)
|| eq_eps(attrib.value[n], 1, FLT_EPSILON))
c++;
- ASSERT(c == 1);
+ CHK(c == 1);
c = 0;
FOR_EACH(n, 0, 2)
if(eq_eps(attrib.value[n], 0, FLT_EPSILON))
c++;
- ASSERT(c == 1);
+ CHK(c == 1);
}
SENC2D(enclosure_ref_put(enclosure));