search for: test_ev

Displaying 8 results from an estimated 8 matches for "test_ev".

Did you mean: test_env
2016 Jun 10
2
Re: [PATCH 2/2] ruby: tests: Give each test class and method a unique name.
...se_event.rb' was not being run. You could prove this by > simply inserting "exit 1" into that test. > > The reason is unclear, but by renaming every class and method in the > tests to be unique, this ensures the tests are run. > --- ruby/t/tc_410_close_event.rb: def test_events ruby/t/tc_420_log_messages.rb: def test_events This explains: all the tests have TestLoad as class name, and these two tests have the same method name. IMHO renaming just the class names should be enough, but this patch is fine as well. Thanks, -- Pino Toscano
2016 Jun 07
3
[PATCH 1/2] ruby: Print exceptions thrown by event callbacks.
--- generator/ruby.ml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/generator/ruby.ml b/generator/ruby.ml index 97ccfdc..0f71ccc 100644 --- a/generator/ruby.ml +++ b/generator/ruby.ml @@ -404,15 +404,17 @@ event_callback_wrapper_wrapper (VALUE argvv) return Qnil; } +/* Callbacks aren't supposed to throw exceptions. We just print the + * exception on
2016 Jun 10
0
Re: [PATCH 2/2] ruby: tests: Give each test class and method a unique name.
...You could prove this by > > simply inserting "exit 1" into that test. > > > > The reason is unclear, but by renaming every class and method in the > > tests to be unique, this ensures the tests are run. > > --- > > ruby/t/tc_410_close_event.rb: def test_events > ruby/t/tc_420_log_messages.rb: def test_events > > This explains: all the tests have TestLoad as class name, and these two > tests have the same method name. IMHO renaming just the class names > should be enough, I tried renaming just the methods, but that didn't seem t...
2006 Dec 18
13
unit testing wxruby GUIs
...me (OS X, 0.0.38) f = Wx::Frame.new(nil, -1, ''test_app'') b = Wx::Button.new(f, -1, ''click'') evt_button(b.get_id) { | e | Kernel.raise ''I was clicked'' } # I got this 10003 id by calling get_event_type on a real button event test_event = Wx::CommandEvent.new(10003, b.get_id) # simulated event processsing - call the event handler above process_event(test_event) I would be interested in developing a neater API to this. The event type constants (eg 10003 for EVT_TYPE_BUTTON) may be exposed already somewhere in wxruby b...
2016 Jun 07
0
[PATCH 2/2] ruby: tests: Give each test class and method a unique name.
...y/t/tc_410_close_event.rb b/ruby/t/tc_410_close_event.rb index be62b91..b77d44f 100644 --- a/ruby/t/tc_410_close_event.rb +++ b/ruby/t/tc_410_close_event.rb @@ -17,8 +17,8 @@ require File::join(File::dirname(__FILE__), 'test_helper') -class TestLoad < MiniTest::Unit::TestCase - def test_events +class Test410CloseEvent < MiniTest::Unit::TestCase + def test_410_close_event g = Guestfs::Guestfs.new() close_invoked = 0 diff --git a/ruby/t/tc_420_log_messages.rb b/ruby/t/tc_420_log_messages.rb index e64ea74..44355fd 100644 --- a/ruby/t/tc_420_log_messages.rb +++ b/ruby/t/t...
2013 Dec 27
0
[PATCH] ruby: Fix .new method (RHBZ#1046509).
...(500*1024*1024) g.launch() diff --git a/ruby/t/tc_410_close_event.rb b/ruby/t/tc_410_close_event.rb index ebf4bbc..d7e53d4 100644 --- a/ruby/t/tc_410_close_event.rb +++ b/ruby/t/tc_410_close_event.rb @@ -22,7 +22,7 @@ require 'guestfs' class TestLoad < Test::Unit::TestCase def test_events - g = Guestfs::create() + g = Guestfs::Guestfs.new() close_invoked = 0 close = Proc.new {| event, event_handle, buf, array | diff --git a/ruby/t/tc_420_log_messages.rb b/ruby/t/tc_420_log_messages.rb index 3fe70de..b734fb8 100644 --- a/ruby/t/tc_420_log_messages.rb +++ b/ruby/...
2014 Jun 27
0
Wine release 1.7.21
....x: "ClientUpdater.exe" crashes sometimes during updates on MD5 checksum processing (squirrel virtual machine) 27113 Free download manager "Unknow network error" without native wininet 27549 Frozen Synapse crash 28756 ws2_32/tests/sock.ok: uninitialised value created in test_events(), used in get_cached_fd()? 28824 shell32/tests/recyclebin.ok: uninitialised value used in TRASH_GetDetails 29755 Deadlock during crash while installing gecko? 29790 popo 2011 crash with builtin msvcrt 29843 IE4 crashes on resetting profile sharing, needs shdocvw.dll.ResetProfileSha...
2020 Oct 23
0
Wine release 5.20
...Zebediah Figura (20): strmbase: Print colorimetry information in strmbase_dump_media_type(). ws2_32/tests: Rewrite the CF_DEFER test in test_AcceptEx(). ws2_32/tests: Remove some workarounds for no longer supported versions of Windows. ws2_32/tests: Remove workarounds from test_events(). ws2_32/tests: Fix a test failure on w10pro64. ws2_32/tests: Add more tests for passing short buffers to AcceptEx(). wine.inf: IsInstalled is a DWORD value. wintrust: Stub CryptCATPutMemberInfo(). wintrust: Stub CryptCATPersistStore(). wintrust: Stub CryptC...