diff mbox series

[1/2] Add missig parentheses to TST_EXP_FAIL() errno check

Message ID 20210921113317.16756-1-mdoucha@suse.cz
State Accepted
Headers show
Series [1/2] Add missig parentheses to TST_EXP_FAIL() errno check | expand

Commit Message

Martin Doucha Sept. 21, 2021, 11:33 a.m. UTC
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 include/tst_test_macros.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Petr Vorel Sept. 21, 2021, 1:31 p.m. UTC | #1
Hi Martin,

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Thanks!
Cyril Hrubis Sept. 21, 2021, 1:39 p.m. UTC | #2
Hi!
Good catch.

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
diff mbox series

Patch

diff --git a/include/tst_test_macros.h b/include/tst_test_macros.h
index 91671d1b8..4a023b700 100644
--- a/include/tst_test_macros.h
+++ b/include/tst_test_macros.h
@@ -176,7 +176,7 @@  extern void *TST_RET_PTR;
 			break;                                                 \
 		}                                                              \
 		                                                               \
-		if (TST_ERR == ERRNO) {                                        \
+		if (TST_ERR == (ERRNO)) {                                      \
 			TST_MSG_(TPASS | TTERRNO, " ",                         \
 				 SSCALL, ##__VA_ARGS__);                       \
 			TST_PASS = 1;                                          \