]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Don't shadow r
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:17:36 +0000 (13:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:17:36 +0000 (13:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/testsuite.h

index 93f6daecd785d45fa775e43ee89e0706b20c69cb..706df4a5002a1608e97c427a91a12ba703fdc0b9 100644 (file)
@@ -136,10 +136,10 @@ ERROR:
 
 #define ASSERT_SUCCESS(expr) \
        do { \
-               int r = expr; \
-               if (r) { \
+               int __r = expr; \
+               if (__r) { \
                        LOG_ERROR("Failed assertion: %s (r = %d, errno = %s) at %s:%d %s\n", \
-                               #expr, r, strerror(errno), __FILE__, __LINE__, __PRETTY_FUNCTION__); \
+                               #expr, __r, strerror(errno), __FILE__, __LINE__, __PRETTY_FUNCTION__); \
                        goto FAIL; \
                } \
        } while (0)