Permalink
Browse files

Fixed one test failure on Windows with x64 JVM,

reported by Joseph Athman.

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@7210 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent 0020bf6 commit 835d879eee3320ab06e44caa9d956d6d6e2dadbf @vvs vvs committed Jul 17, 2008
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/test_command_line_switches.rb
@@ -230,6 +230,12 @@ def test_server_vm_option
# JRUBY-2648
def test_client_vm_option
+ arch = java.lang.System.getProperty('sun.arch.data.model')
+ if (arch == nil || arch == '64')
+ # Either non-Sun JVM, or x64 JVM (which doesn't have client VM)
+ return
+ end
+
# client VM by default:
result = jruby(%Q{-rjava \
-e "print java.lang.management.ManagementFactory.getCompilationMXBean.name"})

0 comments on commit 835d879

Please sign in to comment.