From 04722ad007e7a4f0cef7fd2fd08a6f3219138299 Mon Sep 17 00:00:00 2001 From: Cyril SIX Date: Tue, 17 Apr 2018 12:00:43 +0200 Subject: MPPA - changed UNIT_TEST names --- test/mppa/lib/Makefile | 4 ++-- test/mppa/lib/prng.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/mppa/lib') 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__ -- cgit