From: Rob Lally Date: 2002-03-27T04:43:50+09:00 Subject: Using FxRuby and Test::Unit. I've been trying to write some code Test First using Test::Unit and FxRuby and I'm having some problems. Here is an example showing the problem I'm having. ///START/// require 'Test/Unit' require "fox" class TestClass < Test::Unit::TestCase def set_up @app = Fox::FXApp.new('foo', 'bar') end def test1 end def test2 end end ///END/// Results in : ///START/// Loaded suite FoxProblemDemo Started... ...FoxProblemDemo.rb:6: [BUG] Segmentation fault abnormal program termination ruby 1.6.6 (2001-12-26) [i586-mswin32] >Exit code: 3 ///END/// The problem doesn't show up until the second test method is added. I'm guessing that when set_up is called a second time a second application object is create and that this is not allowed in Fox. I tried to get round this by re-using the application object but this didn't help. I'm trying to test a FXMainWindow sub-class and I get similar problems when I try to instantiate a second instance using the same FXApp object. Any have any pointers on how to use FXRuby and Test::Unit together would be appreciated. Rob Lally.