[LTP] [PATCH 1/4] tst_test.sh: Improve info on wrong tst_brk param
Petr Vorel
pvorel@suse.cz
Tue Jan 23 17:26:44 CET 2024
Print wrong $res parameter in tst_brk helps searching wrong code.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/lib/tst_test.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
index 05a920156..0d2fccb95 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -135,7 +135,7 @@ tst_brk()
fi
if [ "$res" != TBROK -a "$res" != TCONF ]; then
- tst_res TBROK "tst_brk can be called only with TBROK or TCONF"
+ tst_res TBROK "tst_brk can be called only with TBROK or TCONF ($res)"
else
tst_res "$res" "$@"
fi
--
2.43.0
More information about the ltp
mailing list