[LTP] [PATCH] test_macros05: Add TST_EXP_VAL_* test

zhanglianjie zhanglianjie@uniontech.com
Tue Aug 31 04:00:29 CEST 2021


Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: zhanglianjie <zhanglianjie@uniontech.com>

diff --git a/lib/newlib_tests/test_macros05.c b/lib/newlib_tests/test_macros05.c
index a164f23ac..fda1410a2 100644
--- a/lib/newlib_tests/test_macros05.c
+++ b/lib/newlib_tests/test_macros05.c
@@ -26,6 +26,9 @@ static int fail_fn_should_not_be_seen_in_output(void)

 static void do_test(void)
 {
+	TST_EXP_VAL(MACRO_FAIL(), -2);
+	TST_EXP_VAL_SILENT(MACRO_FAIL(), -2);
+
 	TST_EXP_FAIL(MACRO_FAIL(), EINVAL);
 	TST_EXP_FAIL2(MACRO_FAIL(), EINVAL);

--
2.20.1





More information about the ltp mailing list