Details
Description
This happens when 32-bit jruby.exe launches 64-bit JDK, or when an explicit switch is used (-Xfork-java). Will fix.
Here:
D:\work\jruby-dev\jruby>jruby -v test\test_command_line_switches.rb
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2009-12-17 adc6f18) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [amd64-java]
Loaded suite test\test_command_line_switches
Started
.F.FF.F....FF..F..FFFF.F
Finished in 12.378 seconds.
1) Failure:
test_case_insensitive_jruby(TestCommandLineSwitches)
[test\test_command_line_switches.rb:251:in `test_case_insensitive_jruby'
./test/test_helper.rb:52:in `with_jruby_shell_spawning'
test\test_command_line_switches.rb:249:in `test_case_insensitive_jruby']:
<"1"> expected but was
<"">.
2) Failure:
test_dash_big_C(TestCommandLineSwitches) [test\test_command_line_switches.rb:129]:
<"C:/"> expected but was
<"">.
3) Failure:
test_dash_big_C_error(TestCommandLineSwitches) [test\test_command_line_switches.rb:140]:
<""> expected to be =~
</chdir.*fatal/>.
4) Failure:
test_dash_big_w_sets_warning_level(TestCommandLineSwitches)
[test\test_command_line_switches.rb:155:in `test_dash_big_w_sets_warning_level'
./test/test_helper.rb:42:in `with_temp_script'
./test/test_helper.rb:38:in `open'
./test/test_helper.rb:38:in `with_temp_script'
test\test_command_line_switches.rb:152:in `test_dash_big_w_sets_warning_level'
./test/test_helper.rb:52:in `with_jruby_shell_spawning'
test\test_command_line_switches.rb:151:in `test_dash_big_w_sets_warning_level']:
<""> expected to be =~
</warning/>.
5) Failure:
test_dash_little_c_checks_syntax(TestCommandLineSwitches)
[test\test_command_line_switches.rb:21:in `test_dash_little_c_checks_syntax'
./test/test_helper.rb:42:in `with_temp_script'
./test/test_helper.rb:38:in `open'
./test/test_helper.rb:38:in `with_temp_script'
test\test_command_line_switches.rb:20:in `test_dash_little_c_checks_syntax'
./test/test_helper.rb:52:in `with_jruby_shell_spawning'
test\test_command_line_switches.rb:19:in `test_dash_little_c_checks_syntax']:
<""> expected to be =~
</SyntaxError/>.
6) Failure:
test_dash_little_c_checks_syntax_only(TestCommandLineSwitches)
[test\test_command_line_switches.rb:30:in `test_dash_little_c_checks_syntax_only'
./test/test_helper.rb:42:in `with_temp_script'
./test/test_helper.rb:38:in `open'
./test/test_helper.rb:38:in `with_temp_script'
test\test_command_line_switches.rb:29:in `test_dash_little_c_checks_syntax_only'
./test/test_helper.rb:52:in `with_jruby_shell_spawning'
test\test_command_line_switches.rb:28:in `test_dash_little_c_checks_syntax_only']:
<""> expected to be =~
</Syntax OK/>.
7) Failure:
test_dash_little_r_provides_program_name_to_loaded_library(TestCommandLineSwitches)
[test\test_command_line_switches.rb:84:in `test_dash_little_r_provides_program_name_to_loaded_library'
./test/test_helper.rb:42:in `with_temp_script'
./test/test_helper.rb:38:in `open'
./test/test_helper.rb:38:in `with_temp_script'
test\test_command_line_switches.rb:78:in `test_dash_little_r_provides_program_name_to_loaded_library']:
<"M:\\Temp\\test-script.2016.9498.rb.rb\nM:\\Temp\\test-script.2016.9498.rb.rb\nM:\\Temp\\test-script.2016.9498.rb.rb\nM:\\Temp\\test-script.2016.9498.rb.rb\n"> expected but was
<"">.
8) Failure:
test_dash_little_v_version_verbose_T_taint_d_debug_K_kcode_r_require_b_benchmarks_a_splitsinput_I_loadpath_C_cwd_F_delimeter_J_javaprop(TestCommandLineSwitches) [test\test_command_line_switches.rb:103]:
<0> expected but was
<1>.
9) Failure:
test_dash_little_w_turns_warnings_on(TestCommandLineSwitches)
[test\test_command_line_switches.rb:145:in `test_dash_little_w_turns_warnings_on'
./test/test_helper.rb:52:in `with_jruby_shell_spawning'
test\test_command_line_switches.rb:144:in `test_dash_little_w_turns_warnings_on']:
<""> expected to be =~
</warning/>.
10) Failure:
test_server_vm_option(TestCommandLineSwitches) [test\test_command_line_switches.rb:196]:
<""> expected to be =~
</(tiered|server|j9jit24|j9jit23|bea jrockit\(r\) optimizing compiler)/>.
11) Failure:
test_uppercase_exe(TestCommandLineSwitches)
[test\test_command_line_switches.rb:263:in `test_uppercase_exe'
./test/test_helper.rb:52:in `with_jruby_shell_spawning'
test\test_command_line_switches.rb:261:in `test_uppercase_exe']:
<"1"> expected but was
<"">.
12) Failure:
test_with_interesting_file_names(TestCommandLineSwitches)
[test\test_command_line_switches.rb:228:in `test_with_interesting_file_names'
./test/test_helper.rb:42:in `with_temp_script'
./test/test_helper.rb:38:in `open'
./test/test_helper.rb:38:in `with_temp_script'
test\test_command_line_switches.rb:227:in `test_with_interesting_file_names'
./test/test_helper.rb:52:in `with_jruby_shell_spawning'
test\test_command_line_switches.rb:226:in `test_with_interesting_file_names'
test\test_command_line_switches.rb:225:in `each'
test\test_command_line_switches.rb:225:in `each_with_index'
test\test_command_line_switches.rb:225:in `test_with_interesting_file_names']:
<""> expected to be =~
</test-q/>.
24 tests, 35 assertions, 12 failures, 0 errors
Fixed in rev. 6b99148 on master branch (jruby-launcher 0.9.1)