Bug 756167 - Fix make-makefile test failure when the source path contains perl regexp metacharacters. r=coop

This commit is contained in:
Chris Coulson 2012-05-17 17:55:33 -04:00
parent 4841e973e1
commit 00db9cbeaf

View File

@ -120,7 +120,7 @@ sub check_getTopDir
## as the makemakefile.pm module.
ok($path ? 1 : 0, 1, "getTopDir failed");
ok(-d $path ? 1 : 0, 1, "getTopDir: directory $path does not exist");
ok($FindBin::RealBin =~ m%$path/% ? 1 : 0, 1, 'Invalid topdir path');
ok($FindBin::RealBin =~ m%\Q$path/% ? 1 : 0, 1, 'Invalid topdir path');
ok(-e "$path/client.mk" ? 1 : 0, 1, "client.mk not found in $path");
} # check_getTopDir