JRuby

Command line -p option not working correctly on IBM JVM

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: JRuby 1.3.1
  • Component/s: IBM/Other VM
  • Labels:
    None
  • Number of attachments :
    0

Description

Not sure what's happening here:

    [junit] Failure:
    [junit] test_dash_little_p_wraps_script_with_while_gets_and_prints(TestCommandLineSwitches)
    [junit]     [/home/headius/.hudson/jobs/jruby-test-ibmjava6/workspace/jruby/./test/test_command_line_switches.rb:102:in `test_dash_little_p_wraps_script_with_while_gets_and_prints'
    [junit]      /home/headius/.hudson/jobs/jruby-test-ibmjava6/workspace/jruby/./test/test_helper.rb:37:in `with_temp_script'
    [junit]      /home/headius/.hudson/jobs/jruby-test-ibmjava6/workspace/jruby/lib/ruby/1.8/tempfile.rb:188:in `open'
    [junit]      /home/headius/.hudson/jobs/jruby-test-ibmjava6/workspace/jruby/./test/test_helper.rb:29:in `with_temp_script'
    [junit]      /home/headius/.hudson/jobs/jruby-test-ibmjava6/workspace/jruby/./test/test_command_line_switches.rb:100:in `test_dash_little_p_wraps_script_with_while_gets_and_prints']:
    [junit] <"a\na\na\nb\nb\nb\n"> expected but was
    [junit] <"a\na\nb\nb\n">.

I have disabled the test under IBM in order to get a CI build up and running.

Activity

Hide
Hiro Asari added a comment -

The 1.3.1 release seems to do it right.

$ uname -rsv
AIX 1 6
$ bin/jruby -v -p -e 'puts "hi"' < COPYING
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (IBM J9 VM 1.5.0) [ppc-java]
hi
JRuby is released under a tri CPL/GPL/LGPL license. You can use it,
hi
redistribute it and/or modify it under the terms of the:
hi

hi
CPL - see COPYING.CPL file
hi
GPL - see COPYING.GPL file
hi
LGPL - see COPYING.LGPL file
hi

hi
Some additional libraries distributed with JRuby are not covered by
hi
JRuby's licence. See the licence files for the respective libraries in
hi
the 'lib' directory for more information and also LICENSE.RUBY for most
hi
files found in src/lib/ruby/1.8.

Show
Hiro Asari added a comment - The 1.3.1 release seems to do it right. $ uname -rsv AIX 1 6 $ bin/jruby -v -p -e 'puts "hi"' < COPYING jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (IBM J9 VM 1.5.0) [ppc-java] hi JRuby is released under a tri CPL/GPL/LGPL license. You can use it, hi redistribute it and/or modify it under the terms of the: hi hi CPL - see COPYING.CPL file hi GPL - see COPYING.GPL file hi LGPL - see COPYING.LGPL file hi hi Some additional libraries distributed with JRuby are not covered by hi JRuby's licence. See the licence files for the respective libraries in hi the 'lib' directory for more information and also LICENSE.RUBY for most hi files found in src/lib/ruby/1.8.
Hide
Charles Oliver Nutter added a comment -

Ok, we'll call it fixed in 1.3.1. I suspect that when we added JVM information to the version string, we probably loosened the requirements in that test enough that it works ok on IBM now too.

Show
Charles Oliver Nutter added a comment - Ok, we'll call it fixed in 1.3.1. I suspect that when we added JVM information to the version string, we probably loosened the requirements in that test enough that it works ok on IBM now too.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: