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/10_blockdev_diff.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/10_blockdev_diff.sh')
-rwxr-xr-x | tests/10_blockdev_diff.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/10_blockdev_diff.sh b/tests/10_blockdev_diff.sh index 2565ba4..ebb529a 100755 --- a/tests/10_blockdev_diff.sh +++ b/tests/10_blockdev_diff.sh @@ -11,8 +11,11 @@ TEST_TOOLS=$3 ############# Test specific code ############ -setup () { +setup_origin () { mknod $ORIGIN/tochange b `stat /dev/null -c '%t %T'` +} + +setup_target () { mknod $TARGET/tochange b `stat /dev/full -c '%t %T'` } |