summaryrefslogtreecommitdiff
path: root/tests/03_fifo_add_remove.sh
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2011-10-14 17:02:21 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2011-10-14 17:02:21 +0100
commit43ea764b160ca41a599c978f556f8248fe5380be (patch)
tree5efc971fe01673b17d16098ea27694bffc591834 /tests/03_fifo_add_remove.sh
parent87f84d4305716e73f43d0e0577b8295fdff2a64d (diff)
downloadtbdiff-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-xtests/03_fifo_add_remove.sh11
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
}