#!/bin/sh

test_description="Check failing if unexistent \$1 is touched"
. $SHARNESS_TEST_SRCDIR/sharness.sh
export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1

echo touch \$1 >foo.do
test_expect_success "it fails" 'redo foo 2>out ; [ $? = 1 ]'
test_expect_success "message" 'grep -q "touched" out'

test_done
