File: test_osxjvm.rb

package info (click to toggle)
ruby-rjb 1.5.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 704 kB
  • sloc: ansic: 3,859; ruby: 2,604; java: 247; makefile: 35; sh: 3
file content (23 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/local/env ruby -Ku
# encoding: utf-8
# $Id:$

begin
  require 'rjb'
rescue LoadError 
  require 'rubygems' 
  require 'rjb'
end
require 'test/unit'

if RUBY_PLATFORM =~ /darwin/
  class TestOsxJvm < Test::Unit::TestCase
    def test_with_javahome
      ENV['JAVA_HOME'] = `/usr/libexec/java_home`
      assert_nothing_raised do
        Rjb::load
      end
    end
  end
end