aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/lib
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2018-04-17 12:00:43 +0200
committerCyril SIX <cyril.six@kalray.eu>2018-04-17 12:00:43 +0200
commit04722ad007e7a4f0cef7fd2fd08a6f3219138299 (patch)
tree2191eb65f0d328f6c4d0e0f1b7ee1f3d5c779748 /test/mppa/lib
parentc740492e7a5c14a524c31bbc769a07af2e2ac6be (diff)
downloadcompcert-kvx-04722ad007e7a4f0cef7fd2fd08a6f3219138299.tar.gz
compcert-kvx-04722ad007e7a4f0cef7fd2fd08a6f3219138299.zip
MPPA - changed UNIT_TEST names
Diffstat (limited to 'test/mppa/lib')
-rw-r--r--test/mppa/lib/Makefile4
-rw-r--r--test/mppa/lib/prng.c4
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__