{
my ($productDir) = @_;
my $jscName = "testapi";
- $jscName .= "_debug" if (isCygwin() && ($configuration eq "Debug"));
+ $jscName .= "_debug" if configurationForVisualStudio() eq "Debug_All";
return "$productDir/$jscName";
}
if (isAppleMacWebKit() || isAppleWinWebKit()) {
chdirWebKit();
chdir($productDir) or die;
- my $testapiResult = system testapiPath($productDir);
+ my $path = testapiPath($productDir);
+ # Use an "indirect object" so that system() won't get confused if the path
+ # contains spaces (see perldoc -f exec).
+ my $testapiResult = system { $path } $path;
exit exitStatus($testapiResult) if $testapiResult;
}