change jsDriver.pl to use system instead of open for executing js shell, bug 301346. r=mrbkap

This commit is contained in:
bob%bclary.com 2005-07-19 23:03:12 +00:00
Родитель cb6708af08
Коммит ceca37103d
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -210,9 +210,12 @@ sub execute_tests {
my $command = &append_file_to_command($shell_command, $path);
&dd ("executing: " . $command);
open (OUTPUT, $command . $redirect_command . " |");
system "$command $redirect_command > js.out";
open (OUTPUT, "js.out") or
die "failed to open js.out: $!\n";
@output = <OUTPUT>;
close (OUTPUT);
unlink "js.out";
@output = grep (!/js\>/, @output);