[LTP] [PATCH 2/4] commands: Fix tst_brk TFAIL
Petr Vorel
pvorel@suse.cz
Tue Jan 23 17:26:45 CET 2024
It needs to be replaced with tst_res TFAIL and return
Fixes: 1878502f6 ("tst_test.sh/tst_brk(): Allow only TBROK and TCONF")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/commands/gzip/gzip_tests.sh | 3 ++-
testcases/commands/mv/mv_tests.sh | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/testcases/commands/gzip/gzip_tests.sh b/testcases/commands/gzip/gzip_tests.sh
index fdc933ea2..3262c555b 100755
--- a/testcases/commands/gzip/gzip_tests.sh
+++ b/testcases/commands/gzip/gzip_tests.sh
@@ -82,7 +82,8 @@ test1()
gzip -r tst_gzip.tmp > tst_gzip.err 2>&1
if [ $? -ne 0 ]; then
cat tst_gzip.err
- tst_brk TFAIL "Test #1: gzip -r failed"
+ tst_res TFAIL "Test #1: gzip -r failed"
+ return
fi
tst_res TINFO "Test #1: creating output file"
diff --git a/testcases/commands/mv/mv_tests.sh b/testcases/commands/mv/mv_tests.sh
index 91648dd8f..ae8b8701d 100755
--- a/testcases/commands/mv/mv_tests.sh
+++ b/testcases/commands/mv/mv_tests.sh
@@ -88,7 +88,8 @@ test1()
mv tst_mv.old tst_mv.new > tst_mv.err 2>&1
if [ $? -ne 0 ]; then
cat tst_mv.err
- tst_brk TFAIL "Test #1: 'mv tst_mv.old tst_mv.new' failed"
+ tst_res TFAIL "Test #1: 'mv tst_mv.old tst_mv.new' failed"
+ return
fi
tst_res TINFO "Test #1: creating output file"
--
2.43.0
More information about the ltp
mailing list