From: Bil Kleb Date: 2002-03-19T15:26:08+09:00 Subject: Re: Test::Unit GTk GUI Bil Kleb wrote: > > I am running RH7.2 with Ruby 1.6.7 (2002-03-08) [i686-linux], > GTk 1.2.10, Ruby-GTk-0.25, and TestUnit-0.1.4 on the following: I thought Gtk-0.25 was the latest according to the link given in Test::Unit's documentation, i.e., http://www.ruby-lang.org/gtk/en/index.html but alas! there is already a 0.27 version available from, http://www.ruby-lang.org/en/raa-list.rhtml?name=Ruby%2FGTK Someone needs to update the former web page on ruby-lang.org? However, after installing and sucessfully running the tests that ship with the new version of ruby-gtk, I am still getting a similar font assertion failures as before (and found some new instance warnings by invoking my test case from an emacs shell), e.g., (eval):1: warning: instance variable @suite_name_entry not initialized (eval):1: warning: instance variable @main_window not initialized (eval):1: warning: instance variable @main_panel not initialized (eval):1: warning: instance variable @suite_panel not initialized (eval):1: warning: instance variable @run_button not initialized (eval):1: warning: instance variable @progress_panel not initialized (eval):1: warning: instance variable @test_progress_bar not initialized (eval):1: warning: instance variable @green_style not initialized (eval):1: warning: instance variable @info_panel not initialized (eval):1: warning: instance variable @run_count_label not initialized (eval):1: warning: instance variable @assertion_count_label not initialized (eval):1: warning: instance variable @failure_count_label not initialized (eval):1: warning: instance variable @error_count_label not initialized (eval):1: warning: instance variable @list_panel not initialized (eval):1: warning: instance variable @list_scrolled_window not initialized (eval):1: warning: instance variable @fault_list not initialized (eval):1: warning: instance variable @detail_panel not initialized (eval):1: warning: instance variable @detail_scrolled_window not initialized (eval):1: warning: instance variable @outer_detail_sub_panel not initialized (eval):1: warning: instance variable @inner_detail_sub_panel not initialized (eval):1: warning: instance variable @fault_detail_label not initialized Gdk-CRITICAL **: file gdkfont.c: line 236 (gdk_font_ref): assertion `font != NULL' failed. (eval):1: warning: instance variable @status_panel not initialized (eval):1: warning: instance variable @status_entry not initialized Gdk-CRITICAL **: file gdkfont.c: line 334 (gdk_string_width): assertion `font != NULL' failed. /usr/local/pkgs/ruby-1.6.7/lib/ruby/site_ruby/1.6/test/unit/ui/gtk/testrunner.rb:55: [BUG] Segmentation fault ruby 1.6.7 (2002-03-08) [i686-linux] FWIW, line 55 is part of the TestRunner's setup_ui method, viz, def setup_ui # :nodoc: main_window.signal_connect("destroy", nil) { stop } main_window.show_all <<<<*** line 55 *** fault_list.signal_connect("select-child", nil){ |list, item, data| show_fault(item.fault) } fault_list.signal_connect("unselect-child", nil){ clear_fault } @red = false end Still reading the manuals/docs and pining for the green bar, -- Bil Kleb NASA Langley Research Center Hampton, Virginia, USA