1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/test_utils: replace RIOT_FILE_RELATIVE with __FILE__

This commit is contained in:
Benjamin Valentin 2022-11-19 01:44:08 +01:00
parent 37116d359e
commit 7bc115e326

View File

@ -32,10 +32,6 @@
extern "C" { extern "C" {
#endif #endif
#ifndef RIOT_FILE_RELATIVE
#define RIOT_FILE_RELATIVE (__FILE__)
#endif
/** /**
* @brief Function to handle failed expectation * @brief Function to handle failed expectation
* *
@ -80,8 +76,7 @@ NORETURN static inline void _expect_failure(const char *file, unsigned line)
* the condition failed in. * the condition failed in.
* *
*/ */
#define expect(cond) ((cond) ? (void)0 : _expect_failure(RIOT_FILE_RELATIVE, \ #define expect(cond) ((cond) ? (void)0 : _expect_failure(__FILE__, __LINE__))
__LINE__))
#ifdef __cplusplus #ifdef __cplusplus
} }