summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/rm/fail-eperm3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rm/fail-eperm b/tests/rm/fail-eperm
index 7fa9c96f7..fd9c7e157 100755
--- a/tests/rm/fail-eperm
+++ b/tests/rm/fail-eperm
@@ -75,7 +75,8 @@ foreach my $dir (@dir_list)
. " got $status, expected 1\n";
my $exp = "rm: cannot remove `$dir/$f':";
- $line =~ /^$exp/
+ my $regex = quotemeta $exp;
+ $line =~ /^$regex/
or die "$ME: unexpected dignostic from `$cmd';\n"
. " got $line"
. " expected $exp ...\n";