#!/bin/sh

test_description="Check that empty target is a dependency and always OOD"
. $SHARNESS_TEST_SRCDIR/sharness.sh
export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1

echo >foo.do
cat >bar.do <<EOF
redo-ifchange foo
echo bar
EOF
redo-ifchange bar
stat1=`stat bar`
sleep 1 # stat does not output fractions of seconds
redo-ifchange bar
stat2=`stat bar`

test_expect_success "bar rebuilds" '[ "$stat1" != "$stat2" ]'

test_done
