[yast-commit] r66204 - in /trunk/ruby-bindings/tests/ycp: URI.rb ruby_object.ycp
Author: mvidner Date: Mon Oct 3 17:23:35 2011 New Revision: 66204 URL: http://svn.opensuse.org/viewcvs/yast?rev=66204&view=rev Log: Force garbage collection to test memory allocation bugs. Modified: trunk/ruby-bindings/tests/ycp/URI.rb trunk/ruby-bindings/tests/ycp/ruby_object.ycp Modified: trunk/ruby-bindings/tests/ycp/URI.rb URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/tests/ycp/URI.rb?rev=66204&r1=66203&r2=66204&view=diff ============================================================================== --- trunk/ruby-bindings/tests/ycp/URI.rb (original) +++ trunk/ruby-bindings/tests/ycp/URI.rb Mon Oct 3 17:23:35 2011 @@ -1,11 +1,13 @@ require 'uri' module URI - # URI::parse works even without glue? - #def self.parse(uri_string) - - #end + # URI::parse works even without glue def self.scheme(instance) instance.scheme end + + # garbage_collect + class << self; + include GC + end end Modified: trunk/ruby-bindings/tests/ycp/ruby_object.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/tests/ycp/ruby_object.ycp?rev=66204&r1=66203&r2=66204&view=diff ============================================================================== --- trunk/ruby-bindings/tests/ycp/ruby_object.ycp (original) +++ trunk/ruby-bindings/tests/ycp/ruby_object.ycp Mon Oct 3 17:23:35 2011 @@ -9,6 +9,9 @@ // my_uri is an opaque ruby object any my_uri = URI::parse("http://www.ruby-lang.org/"); + + URI::garbage_collect(); + string scheme = (string) URI::scheme(my_uri); y2milestone("scheme: %1", scheme); return scheme == "http"; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn2.opensuse.org