Closed Bug 602786 Opened 15 years ago Closed 15 years ago

lirasm: fix trivial Windows test failure

Categories

(Core Graveyard :: Nanojit, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

(Whiteboard: fixed-in-nanojit, fixed-in-tracemonkey)

Attachments

(1 file)

We currently get this: TEST-UNEXPECTED-FAIL | lirasm | lirasm --execute ../nanojit-src/lirasm/tests/hardfloat/ui2d.in expected output Output is: 4.29497e+09 actual output Output is: 4.29497e+009 That's really annoying. We currently use |cout << d| to print the double result. Anyone know if printf("%f") or printf("%g") gives more consistent results across all platforms?
Looks like we won't be able to eliminate compiler/lib differences, but I wonder if post-processing is a feasible option.
Not pretty but should do the job to make windows happy.
Attachment #487469 - Flags: review?(nnethercote)
Comment on attachment 487469 [details] [diff] [review] sed to the rescue r=me if you add a brief comment explaining why the sed command is there. Thanks!
Attachment #487469 - Flags: review?(nnethercote) → review+
(In reply to comment #4) > rreitmai http://hg.mozilla.org/projects/nanojit-central/rev/fa319402f3bb Gak, change applied to input file, not output... fix coming.
Ignore comment 5, the problem was cygwin sed's treatment of escape. fix in http://hg.mozilla.org/projects/nanojit-central/rev/cf0963c16a8c
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: