$TESTPOOL/$TESTCLONE
log_mustnot_checkerror_program "not in the target pool" \
- $TESTPOOL - <<-EOF
- return zfs.exists('rpool')
-EOF
+ $TESTPOOL - <<<"return zfs.exists('rpool')"
log_pass "zfs.exists() gives correct results"
typeset -i i=0
while (( i < ${#args[*]} )); do
- log_mustnot_checkerror_program "malformed number" $TESTPOOL - <<-EOF
- return ${args[i]}
- EOF
+ log_mustnot_checkerror_program "malformed number" $TESTPOOL - <<<"return ${args[i]}"
((i = i + 1))
done
log_assert "overflowing a 64-bit integer should wrap around"
-log_must_program $TESTPOOL - <<-EOF
- assert(18446744073709551615 + 1 == (-18446744073709551616))
-EOF
+log_must_program $TESTPOOL - <<<"assert(18446744073709551615 + 1 == (-18446744073709551616))"
log_pass "overflowing a 64-bit integer should wrap around"
typeset -i i=0
while (( i < ${#args[*]} )); do
- log_mustnot_checkerror_program "execution failed" $TESTPOOL - <<-EOF
- ${args[i]}
- EOF
+ log_mustnot_checkerror_program "execution failed" $TESTPOOL - <<<"${args[i]}"
((i = i + 1))
done
typeset -i i=0
while (( i < ${#args[*]} )); do
- log_must_program $TESTPOOL - <<-EOF
- ${args[i]}
- EOF
+ log_must_program $TESTPOOL - <<<"${args[i]}"
((i = i + 1))
done
output_lines=$(log_must zfs program $TESTPOOL \
$ZCP_ROOT/lua_core/tst.return_large.zcp | wc -l)
-[[ $output_lines -lt 5000 ]] &&
- log_fail "Expected return of full list but only got $output_lines lines"
+log_must [ $output_lines -ge 5000 ]
#
# Make sure we fail if the return is over the memory limit
typeset -i last_index=$((${#args[*]} - 1))
for i in $(seq 0 $last_index); do
log_note "running program: ${args[i]}"
- log_mustnot_checkerror_program "execution failed" $TESTPOOL - <<-EOF
- return ${args[i]}
- EOF
+ log_mustnot_checkerror_program "execution failed" $TESTPOOL - <<<"return ${args[i]}"
((i = i + 1))
done
for i in $(seq 0 $last_index); do
log_note "running program: ${args[i]}"
- log_mustnot_checkerror_program "execution failed" $TESTPOOL - <<-EOF
- error(${args[i]})
- EOF
+ log_mustnot_checkerror_program "execution failed" $TESTPOOL - <<<"error(${args[i]})"
((i = i + 1))
done
typeset -i i=0
while (( i < ${#args[*]} )); do
log_note "running program: return ${args[i]}"
- log_must_program $TESTPOOL - <<-EOF
- return ${args[i]}
- EOF
+ log_must_program $TESTPOOL - <<<"return ${args[i]}"
((i = i + 1))
done
typeset -i i=0
while (( i < ${#args[*]} )); do
log_note "running program: error(${args[i]})"
- log_mustnot_checkerror_program "in function 'error'" $TESTPOOL - <<-EOF
- error(${args[i]})
- EOF
+ log_mustnot_checkerror_program "in function 'error'" $TESTPOOL - <<<"error(${args[i]})"
((i = i + 1))
done