--- tests/pdumpfs-test.orig	Mon Jul 12 14:13:44 2004
+++ tests/pdumpfs-test	Mon Jul 12 14:20:28 2004
@@ -13,7 +13,13 @@
 cd ..
 
 today=`date +%Y/%m/%d`
-yesterday=`date --date '1 day ago' +%Y/%m/%d`
+if date --date '1 day ago' +%Y/%m/%d >/dev/null 2>&1; then
+	yesterday=`date --date '1 day ago' +%Y/%m/%d`
+else
+	todaysec=`date +%s`
+	yesterdaysec=`expr $todaysec - 86400`
+	yesterday=`date -r $yesterdaysec  +%Y/%m/%d`
+fi
 
 ../pdumpfs src dest  || exit 1
 diff -r src dest/$today/src || exit 1
