diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-14 17:02:21 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-14 17:02:21 +0100 |
commit | 43ea764b160ca41a599c978f556f8248fe5380be (patch) | |
tree | 5efc971fe01673b17d16098ea27694bffc591834 /tests/03_fifo_add_remove.sh | |
parent | 87f84d4305716e73f43d0e0577b8295fdff2a64d (diff) | |
download | tbdiff-43ea764b160ca41a599c978f556f8248fe5380be.tar.gz |
Restructured tests so mandatory delay between source and target
directories can be inserted, to ensure mtime is not equal
now dir_add_remove fails because the mtime of the directory
changed after a file in it was altered
Diffstat (limited to 'tests/03_fifo_add_remove.sh')
-rwxr-xr-x | tests/03_fifo_add_remove.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/03_fifo_add_remove.sh b/tests/03_fifo_add_remove.sh index fb42406..9db6d12 100755 --- a/tests/03_fifo_add_remove.sh +++ b/tests/03_fifo_add_remove.sh @@ -11,10 +11,13 @@ TEST_TOOLS=$3 ############# Test specific code ############ -setup () { - mkfifo $ORIGIN/remove && \ - mkfifo $TARGET/add && \ - chmod 707 $TARGET/add && \ +setup_origin () { + mkfifo $ORIGIN/remove +} + +setup_target () { + mkfifo $TARGET/add && + chmod 707 $TARGET/add && chown -h :cdrom $TARGET/add } |