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 |
Hi Martin,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Thanks!
Hi!
Good catch.
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
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; \
Signed-off-by: Martin Doucha <mdoucha@suse.cz> --- include/tst_test_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)