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

Martin Doucha
2021-09-21T11:33:32Z

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
include/tst_test_macros.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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; \
--
2.33.0