From 43a6ccf023247cabf1fcd6eefa7ffdf533364eb3 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Thu, 6 Dec 2012 10:11:42 +0100 Subject: 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. --- tests/df/total-verify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '-') { -- cgit v1.2.3-54-g00ecf