Closed Bug 301346 Opened 19 years ago Closed 19 years ago

change jsDriver.pl to use system instead of open for executing js shell

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bc, Assigned: bc)

Details

Attachments

(1 file)

I have been having problems running jsDriver on WinXPSP2 for a couple of weeks.
It may be a problem with unix/dos line endings in perl/cygwin and msvc file
output. Changing the open(OUTPUT, "foo args |"); @output = <OUTPUT>; close
OUTPUT; to use system and a temp file.

patch coming up
Attached patch patchSplinter Review
Attachment #189811 - Flags: review?(mrbkap)
Comment on attachment 189811 [details] [diff] [review]
patch

Ain't it fun working around bugs in Perl? ;-)

r=me with the tabs you've introduced changed into spaces.
Attachment #189811 - Flags: review?(mrbkap) → review+
Checking in jsDriver.pl;
/cvsroot/mozilla/js/tests/jsDriver.pl,v  <--  jsDriver.pl
new revision: 1.57; previous revision: 1.56

thx
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
I checked in a minor change 

-        system "$command $redirect_command > js.out";
+        system "$command > js.out $redirect_command";

to fix the stderr to stdout duplication.

Checking in jsDriver.pl;
/cvsroot/mozilla/js/tests/jsDriver.pl,v  <--  jsDriver.pl
new revision: 1.58; previous revision: 1.57
Flags: testcase-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: