Issue Details (XML | Word | Printable)

Key: JRUBY-1249
Type: Test Test
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Stuart Halloway
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

eliminating test console blabber, possible difference from MRI

Created: 29/Jul/07 09:06 PM   Updated: 23/Apr/08 10:16 AM
Component/s: Interpreter
Affects Version/s: JRuby 1.1
Fix Version/s: JRuby 1.1

Time Tracking:
Not Specified

File Attachments: 1. File make_stdout_shut_up.diff (1.0 kB)


Testcase included: yes
Patch Submitted: Yes


 Description  « Hide
I am trying to get rid of this console noise when running the unit tests:
{{
[junit] ./test/testStruct.rb:91 warning: redefining constant Struct::Post
[junit] ./test/testStruct.rb:98 warning: redefining constant Struct::MyStruct
}}
I have added a patch which works for MRI, but not JRuby. Is this a bug, or a deliberate/necessary different in how stdout works in JRuby?

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Stuart Halloway added a comment - 29/Jul/07 10:12 PM
Nevermind about the MRI difference – tired brain. Working the same everywhere, once Nick pointed out that I needed to Recording::stderr instead of stdout.

Charles Oliver Nutter added a comment - 23/Apr/08 10:12 AM
Marking bugs with invalid "fixed for release" as fixed in 1.1.