Commit c7ad0710 authored by Gabriel Krisman Bertazi's avatar Gabriel Krisman Bertazi
Browse files

testsuite: chdir must fail if pointed to a file


Signed-off-by: default avatarGabriel Krisman Bertazi <krisman@collabora.co.uk>
parent e2d55b3f
......@@ -11,6 +11,7 @@ proc chdir {} {
set chdir "$basedir/chdir"
prepare_test "mkdir" "/tmp/ci/chdir-dest"
prepare_test "mkdir" "/tmp/ci/chdir-dest/indir"
prepare_test "touch" "/tmp/ci/chdir-dest/chdir-invalid-dest"
run_cs "chdir sanity check" \
"$chdir" "/tmp/ci/chdir-dest" "*Test Complete*"
......@@ -59,6 +60,11 @@ proc chdir {} {
"/tmp/ci/chdir-dest" "$chdir" "../chdir-deSt" \
"*Test Complete*"
run_ci "chdir to file must fail" \
"$chdir" "/tmp/ci/chdir-DEST/chdir-InVaLiD-dest" \
"*Error: Not a directory*"
prepare_test "rm" "/tmp/ci/chdir-dest/chdir-invalid-dest"
prepare_test "rmdir" "/tmp/ci/chdir-dest/indir"
prepare_test "rmdir" "/tmp/ci/chdir-dest"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment