diff options
-rw-r--r-- | test/mppa/lib/Makefile | 4 | ||||
-rw-r--r-- | test/mppa/lib/prng.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/mppa/lib/Makefile b/test/mppa/lib/Makefile index e6a75707..7aeab9f3 100644 --- a/test/mppa/lib/Makefile +++ b/test/mppa/lib/Makefile @@ -1,8 +1,8 @@ prng-test-x86: prng.c - gcc -D__UNIT_TEST__ -O2 -std=c99 $< -o $@ + gcc -D__UNIT_TEST_PRNG__ -O2 -std=c99 $< -o $@ prng-test-k1c: prng.c - k1-gcc -D__UNIT_TEST__ -O2 -std=c99 $< -o $@ + k1-gcc -D__UNIT_TEST_PRNG__ -O2 -std=c99 $< -o $@ .PHONY: test: test-x86 test-k1c diff --git a/test/mppa/lib/prng.c b/test/mppa/lib/prng.c index bfc38678..dfa97834 100644 --- a/test/mppa/lib/prng.c +++ b/test/mppa/lib/prng.c @@ -16,7 +16,7 @@ uint64_t randlong(void){ return (current = MULTIPLIER * current + INCREMENT); } -#ifdef __UNIT_TEST__ +#ifdef __UNIT_TEST_PRNG__ char bytewise_sum(uint64_t to_check){ char sum = 0; @@ -39,4 +39,4 @@ int main(void){ return !((unsigned char)bytewise_sum(last) == 251); } -#endif // __UNIT_TEST__ +#endif // __UNIT_TEST_PRNG__ |