3 testname=`basename "$0"`
4 test_description="Check that non-renamed target copies mode from temporary target"
5 . $SHARNESS_TEST_SRCDIR/sharness.sh
6 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
10 test_expect_success "foo is non executable" '[ ! -x foo ]'
11 inode0=`perl -e '@s=stat "foo"; print "$s[1]\n"'`
18 test_expect_success "foo is executable" '[ -x foo ]'
19 inode1=`perl -e '@s=stat "foo"; print "$s[1]\n"'`
20 test_expect_success "foo was not renamed" '[ $inode0 = $inode1 ]'