X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-bitrotate.c;h=bebb3639c91f05927a63c7377a2b21954d0678e1;hb=f4766fa950bb6f1e10354a4546ab229f463ef2e5;hp=5ebf60f89f8e1c3da5df45862ca2f8aec570773b;hpb=54c148b43d12bab5a96a8619d86e474692d664b3;p=gnulib.git diff --git a/tests/test-bitrotate.c b/tests/test-bitrotate.c index 5ebf60f89..bebb3639c 100644 --- a/tests/test-bitrotate.c +++ b/tests/test-bitrotate.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,21 +20,7 @@ #include "bitrotate.h" -#include -#include - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", \ - __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main (void) @@ -224,7 +210,6 @@ main (void) ASSERT (rotl64 (16045690984503098046ULL, 62) == 13234794782980550319ULL); ASSERT (rotl64 (16045690984503098046ULL, 63) == 8022845492251549023ULL); - ASSERT (rotr64 (16045690984503098046ULL, 0) == 16045690984503098046ULL); ASSERT (rotr64 (16045690984503098046ULL, 1) == 8022845492251549023ULL); ASSERT (rotr64 (16045690984503098046ULL, 2) == 13234794782980550319ULL); ASSERT (rotr64 (16045690984503098046ULL, 3) == 15840769428345050967ULL);