]> Cypherpunks.ru repositories - goredo.git/blobdiff - t/goredo-chmoding.t
Do not depend on non-portable stat command
[goredo.git] / t / goredo-chmoding.t
index 79866970b608c595c41b290a343e91da51f6ba22..c283aba893b6e2a2d3208019045b7ff2cf2f15dd 100755 (executable)
@@ -8,7 +8,7 @@ export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 echo echo ok > foo.do
 redo foo
 test_expect_success "foo is non executable" '[ ! -x foo ]'
-inode0=`stat -f %i foo`
+inode0=`perl -e '@s=stat "foo"; print "$s[1]\n"'`
 
 cat > foo.do <<EOF
 echo ok > \$3
@@ -16,7 +16,7 @@ chmod +x \$3
 EOF
 redo foo
 test_expect_success "foo is executable" '[ -x foo ]'
-inode1=`stat -f %i foo`
+inode1=`perl -e '@s=stat "foo"; print "$s[1]\n"'`
 test_expect_success "foo was not renamed" '[ $inode0 = $inode1 ]'
 
 test_done