2019-11-11 15:15:16 +01:00
|
|
|
From 6033cf22749bfa20fe0a9b039b7725f9a372b6ad Mon Sep 17 00:00:00 2001
|
2018-07-26 17:57:22 +02:00
|
|
|
From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de>
|
|
|
|
Date: Thu, 26 Jul 2018 17:47:59 +0200
|
2019-11-11 15:15:16 +01:00
|
|
|
Subject: [PATCH] Replace __FILE__ by RIOT_FILE_NOPATH
|
2018-07-26 17:57:22 +02:00
|
|
|
|
|
|
|
The binary file size changes when the RIOT directory is moved.
|
|
|
|
This caused the `libfixmath_unittests` to fail on my computer.
|
|
|
|
|
|
|
|
I used RIOT_FILE_NOPATH instead of RIOT_FILE_RELATIVE as 'TEST' is used a lot
|
|
|
|
and it would allow more boards to be tested, full path is not that important.
|
|
|
|
---
|
|
|
|
unittests/libfixmath-unittests.h | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/unittests/libfixmath-unittests.h b/unittests/libfixmath-unittests.h
|
2019-11-11 15:15:16 +01:00
|
|
|
index a3324bf..bf6b063 100644
|
2018-07-26 17:57:22 +02:00
|
|
|
--- a/unittests/libfixmath-unittests.h
|
|
|
|
+++ b/unittests/libfixmath-unittests.h
|
|
|
|
@@ -5,7 +5,7 @@
|
|
|
|
#define STR2(x) STR(x)
|
|
|
|
#define TEST(x) \
|
|
|
|
if (!(x)) { \
|
|
|
|
- printf( "\033[31;1mFAILED:\033[22;39m " __FILE__ ":" STR2(__LINE__) " " #x "\n"); \
|
|
|
|
+ printf( "\033[31;1mFAILED:\033[22;39m " RIOT_FILE_NOPATH ":" STR2(__LINE__) " " #x "\n"); \
|
|
|
|
status = 1; \
|
|
|
|
} else { \
|
|
|
|
printf("\033[32;1mOK:\033[22;39m " #x "\n"); \
|
2019-11-11 15:15:16 +01:00
|
|
|
--
|
|
|
|
2.20.1
|
2018-07-26 17:57:22 +02:00
|
|
|
|