aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-09-16 19:42:16 +0200
committerTharre <tharre3@gmail.com>2015-09-16 19:42:16 +0200
commit29fb2912ef6100a9659c2f065c683424f2a964a4 (patch)
tree77bc6645e1aa1241cefa0b5f45a6e870b0bb9b32 /tests
parent7948ad86578f789cf1c2b92eb9b5c625e26df007 (diff)
downloadredo-29fb2912ef6100a9659c2f065c683424f2a964a4.tar.gz
redo-29fb2912ef6100a9659c2f065c683424f2a964a4.tar.xz
redo-29fb2912ef6100a9659c2f065c683424f2a964a4.zip
Make $3 an absolute path
Diffstat (limited to 'tests')
-rwxr-xr-xtests/t0010-check_args.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/t0010-check_args.t b/tests/t0010-check_args.t
index feae935..ca6d28f 100755
--- a/tests/t0010-check_args.t
+++ b/tests/t0010-check_args.t
@@ -16,8 +16,19 @@ cat > "d/check_args.ext1.ext2.do" <<'EOF'
[ "$3" != "check_args.ext1.ext2" ]
EOF
+cat > "absolute_paths.do" <<'EOF'
+#!/bin/sh -e
+cd /tmp
+echo "test" > $3
+EOF
+
test_expect_success "check arguments" "
redo d/check_args.ext1.ext2
"
+test_expect_success "\$3 should be absolute" "
+ redo absolute_paths &&
+ [ -e absolute_paths ]
+"
+
test_done