From e746f06265981fd17bc656ca59e0ed82f6cea84d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 Apr 2016 17:19:53 +0200 Subject: Add option UNSAFE which disables all internal error checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test.c') diff --git a/test.c b/test.c index 5b7642a..ffd9066 100644 --- a/test.c +++ b/test.c @@ -787,6 +787,9 @@ main(void) assert((zseti(a, 11), zptest(0, a, 100)), != NONPRIME); assert((zseti(a, 101), zptest(0, a, 100)), != NONPRIME); +#if defined(UNSAFE) + (void) env2; +#else assert_nr(zdivmod(a, b, _0, _0)); assert_nr(zdivmod(a, b, _1, _0)); zdivmod(a, b, _0, _1); @@ -828,6 +831,7 @@ main(void) assert_nr(zmodpowu(a, _0, 1, _0)); assert_nr(zmodpowu(a, _1, 0, _0)); assert_nr((zneg(_1, _1), zmodpowu(a, _1, 0, _0))); zneg(_1, _1); +#endif zsetu(a, 1LL); assert_s(zstr(a, buf, 1), "1"); -- cgit v1.2.3-70-g09d2