From 7bc115e3264d78a775c56679147834ec2077f7da Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sat, 19 Nov 2022 01:44:08 +0100 Subject: [PATCH] sys/test_utils: replace RIOT_FILE_RELATIVE with __FILE__ --- sys/include/test_utils/expect.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/include/test_utils/expect.h b/sys/include/test_utils/expect.h index d6313ee4f4..6417cd75b9 100644 --- a/sys/include/test_utils/expect.h +++ b/sys/include/test_utils/expect.h @@ -32,10 +32,6 @@ extern "C" { #endif -#ifndef RIOT_FILE_RELATIVE -#define RIOT_FILE_RELATIVE (__FILE__) -#endif - /** * @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. * */ -#define expect(cond) ((cond) ? (void)0 : _expect_failure(RIOT_FILE_RELATIVE, \ - __LINE__)) +#define expect(cond) ((cond) ? (void)0 : _expect_failure(__FILE__, __LINE__)) #ifdef __cplusplus }