Use 'return' instead of 'exit' in test

This commit is contained in:
Tianlong Wu 2016-04-22 16:24:26 +08:00
parent 115bd51f3f
commit cf23dc78ab

View File

@ -55,7 +55,7 @@ function test_truncate_empty_file {
if [ $t_size -ne $size ]
then
echo "error: expected ${TEST_TEXT_FILE} to be $t_size length, got $size"
exit 1
return 1
fi
rm_test_file
}