summaryrefslogtreecommitdiff
path: root/tests/df
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2012-12-06 10:11:42 +0100
committerBernhard Voelker <mail@bernhard-voelker.de>2012-12-06 11:15:34 +0100
commit43a6ccf023247cabf1fcd6eefa7ffdf533364eb3 (patch)
tree345968cf297d9e1a6a7d161869d659ad50023ebc /tests/df
parenteac397efff2810bbffc0857e5c2ad96d637debbe (diff)
downloadcoreutils-43a6ccf023247cabf1fcd6eefa7ffdf533364eb3.tar.xz
tests: fix regex to match "-" in ipcent field in df/total-verify.sh
The regular expression failed to match for file systems that do not provide inode statistics, e.g. VFAT or CIFS (depending on the underlying peer file system). * tests/df/total-verify.sh: Fix the regular expression to match a dash in the ipcent field again. Reported by Assaf Gordon in http://bugs.gnu.org/13099. Bug introduced in commit v8.20-18-gdae8d22.
Diffstat (limited to 'tests/df')
-rwxr-xr-xtests/df/total-verify.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/df/total-verify.sh b/tests/df/total-verify.sh
index 18d215f11..5f375bb88 100755
--- a/tests/df/total-verify.sh
+++ b/tests/df/total-verify.sh
@@ -32,7 +32,7 @@ while (<>)
# /dev/sdc1 0 0 0 - /c
# tmpfs 1536000 12965 1523035 1% /tmp
# total 5285932 787409 4498523 15% -
- /^(.*?) +(-?\d+|-) +(-?\d+|-) +(-?\d+|-) +(?:- |[0-9]+%) (.*)$/
+ /^(.*?) +(-?\d+|-) +(-?\d+|-) +(-?\d+|-) +(?:-|[0-9]+%) (.*)$/
or die "$0: invalid input line\n: $_";
if ($1 eq 'total' && $5 eq '-')
{