testsuite: fix du testsuite to not use changing directories
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 23 Apr 2008 07:02:02 +0000 (07:02 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 23 Apr 2008 07:02:02 +0000 (07:02 -0000)
testsuite/du/du-h-works
testsuite/du/du-k-works
testsuite/du/du-l-works
testsuite/du/du-m-works
testsuite/du/du-s-works
testsuite/du/du-works

index 82041ab339316181f397f9ac8d5359f3b34ced8f..3f8ff3d0b503cedbc2bb2e6011b743503904b184 100644 (file)
@@ -1,4 +1,4 @@
-[ -n "$d" ] || d=..
+d=/bin
 du -h "$d" > logfile.gnu
 busybox du -h "$d" > logfile.bb
 cmp logfile.gnu logfile.bb
index 177a1a2cd728ffc87bcdaa446922973af56c0850..6c2c5d073543d17de3f7acaf1b78b63ef813fd32 100644 (file)
@@ -1,4 +1,4 @@
-[ -n "$d" ] || d=..
+d=/bin
 du -k "$d" > logfile.gnu
 busybox du -k "$d" > logfile.bb
 cmp logfile.gnu logfile.bb
index 61e91400c92ed4485b155f3dda8bdebeaea025a2..c3d2ec0c111160750c51b4cda210a12aa8ea9ae0 100644 (file)
@@ -1,4 +1,4 @@
-[ -n "$d" ] || d=..
+d=/bin
 du -l "$d" > logfile.gnu
 busybox du -l "$d" > logfile.bb
 cmp logfile.gnu logfile.bb
index bc9707350b56fc4cc3f9465cd3a55a9b8d7ccb02..bf0a90e1b82858cf3ab9e71ec267b573a2b0f984 100644 (file)
@@ -1,4 +1,4 @@
-[ -n "$d" ] || d=..
+d=/bin
 du -m "$d" > logfile.gnu
 busybox du -m "$d" > logfile.bb
 cmp logfile.gnu logfile.bb
index f0b3bf0ae08ed13d4b21cf29db5c01e7e6afd358..ae970772a0cc307692691bcd6ea6cd7a81e45d49 100644 (file)
@@ -1,4 +1,4 @@
-[ -n "$d" ] || d=..
+d=/bin
 du -s "$d" > logfile.gnu
 busybox du -s "$d" > logfile.bb
 cmp logfile.gnu logfile.bb
index 47949c694bd0e5f9ebecd0d8d17ae50b6a808fac..46a336dc3f14806bb6b47697cd75ef119be2daa7 100644 (file)
@@ -1,4 +1,4 @@
-[ -n "$d" ] || d=..
+d=/bin
 du "$d" > logfile.gnu
 busybox du "$d" > logfile.bb
 cmp logfile.gnu logfile.bb