test/*.sh : Fix MALLOC_PERTURB initialization. 1.3.0
authorErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 27 May 2013 09:22:21 +0000 (19:22 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 27 May 2013 09:23:42 +0000 (19:23 +1000)
Was using '$(date +%N)', but that doesn't work on OSX or *BSD. Switched
to using '$(date +%s)'.

test/test_bins.sh
test/test_flac.sh
test/test_grabbag.sh
test/test_metaflac.sh

index a345b6e..a277a55 100755 (executable)
@@ -39,7 +39,7 @@ LD_LIBRARY_PATH=../src/share/utf8/.libs:$LD_LIBRARY_PATH
 LD_LIBRARY_PATH=../objs/$BUILD/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
 export MALLOC_CHECK_=3
-export MALLOC_PERTURB_==$((1$(date +%N) % 255 + 1))
+export MALLOC_PERTURB_==$(($(date +%s) % 255 + 1))
 PATH=../src/flac:$PATH
 PATH=../objs/$BUILD/bin:$PATH
 BINS_PATH=../../test_files/bins
index 662262c..f24893f 100755 (executable)
@@ -53,7 +53,7 @@ LD_LIBRARY_PATH=`pwd`/../src/share/utf8/.libs:$LD_LIBRARY_PATH
 LD_LIBRARY_PATH=`pwd`/../objs/$BUILD/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
 export MALLOC_CHECK_=3
-export MALLOC_PERTURB_=$((1$(date +%N) % 255 + 1))
+export MALLOC_PERTURB_=$(($(date +%s) % 255 + 1))
 PATH=`pwd`/../src/flac:$PATH
 PATH=`pwd`/../src/metaflac:$PATH
 PATH=`pwd`/../src/test_streams:$PATH
index 2d2faed..12b3e9c 100755 (executable)
@@ -36,7 +36,7 @@ LD_LIBRARY_PATH=../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH
 LD_LIBRARY_PATH=../objs/$BUILD/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
 export MALLOC_CHECK_=3
-export MALLOC_PERTURB_=$((1$(date +%N) % 255 + 1))
+export MALLOC_PERTURB_=$(($(date +%s) % 255 + 1))
 PATH=../src/test_grabbag/cuesheet:$PATH
 PATH=../src/test_grabbag/picture:$PATH
 PATH=../objs/$BUILD/bin:$PATH
index 86970a6..c6f7ed1 100755 (executable)
@@ -48,7 +48,7 @@ LD_LIBRARY_PATH=`pwd`/../src/share/utf8/.libs:$LD_LIBRARY_PATH
 LD_LIBRARY_PATH=`pwd`/../objs/$BUILD/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
 export MALLOC_CHECK_=3
-export MALLOC_PERTURB_=$((1$(date +%N) % 255 + 1))
+export MALLOC_PERTURB_=$(($(date +%s) % 255 + 1))
 PATH=`pwd`/../src/flac:$PATH
 PATH=`pwd`/../src/metaflac:$PATH
 PATH=`pwd`/../objs/$BUILD/bin:$PATH