From e226040ce2d6176fc123d7a8371a37204118e052 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 2 Apr 2014 21:46:23 +0200 Subject: [PATCH] Fixes the regression test making it less strict. Creating files with at the same time, with the same name and same size but different content may trigger the SnapRAID check about bad data. This happens in Mac OS X that likely has a not so precise timestamp, with files created at the same time, even if using nanosecond precision. --- HISTORY | 2 +- Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 86a15acc..c5b87c87 100644 --- a/HISTORY +++ b/HISTORY @@ -3,7 +3,7 @@ SnapRAID HISTORY 6.1 2014/4 ========== - * Fix build in Mac OS X. + * Fix build and regression test in Mac OS X. 6.0 2014/3 ========== diff --git a/Makefile.am b/Makefile.am index eefeca22..9a7beb9b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -216,10 +216,10 @@ endif echo 1 > bench/disk1/file_hardlink1 ln bench/disk1/file_hardlink1 bench/disk1/file_hardlink2 ln bench/disk1/file_hardlink1 bench/disk1/file_hardlink3 - echo 2 > bench/disk2/file_hardlink1 + echo 22 > bench/disk2/file_hardlink1 ln bench/disk2/file_hardlink1 bench/disk2/file_hardlink2 ln bench/disk2/file_hardlink1 bench/disk2/file_hardlink3 - echo 3 > bench/disk3/file_hardlink1 + echo 333 > bench/disk3/file_hardlink1 ln bench/disk3/file_hardlink1 bench/disk3/file_hardlink2 ln bench/disk3/file_hardlink1 bench/disk3/file_hardlink3 $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(PAR1) diff > output.log