[Win32utils-devel] win32-clipboard encoding issue

Daniel Berger djberg96 at gmail.com
Sat Jan 11 15:36:04 UTC 2014


>
>
> > BTW, I am getting intermittent test failures for the
> > HtmlClipboard.data_details method for some reason. It usually passes, but
> > sometimes it doesn't:
> >
> > C:\Users\djberge\Repositories\win32-clipboard>rake
> > C:/ruby200-x64/bin/ruby.exe -w -I"lib"
> > -I"C:/ruby200-x64/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib" "C:/ruby200
> > -x64/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb"
> > "test/test*.rb"
> > Loaded suite
> >
> C:/ruby200-x64/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader
> > Started
> > .F
> >
> ===============================================================================
> > Failure:
> >   Exception raised:
> >   RuntimeError(<failed to match block markers>)
> > test: data details basic functionality(TC_Html_Clipboard)
> >
> C:/Users/djberge/Repositories/win32-clipboard/test/test_html_clipboard.rb:42:in
> > `block in <class:TC_Html_Clipb
> > oard>'
> >      39:
> >      40:   test "data details basic functionality" do
> >      41:     assert_respond_to(HtmlClipboard, :data_details)
> >   => 42:     assert_nothing_raised{ HtmlClipboard.data_details }
> >      43:     assert_kind_of(String, HtmlClipboard.data_details)
> >      44:   end
> >      45:
> > ==============================================================
> >
> I can not reproduce the above test failure.
>
> The error message means your clipboard data is not match either
> MARKER_BLOCK_EX or MARKER_BLOCK.
> Would you insert debugging code before assert to print the data in
> test failure case?
>     p HtmlClipboard.data_details
>     assert_nothing_raised{ HtmlClipboard.data_details }


I can't duplicate it now. :(

I think I'm just going to release it as it is now. I'm also going to
release win32-eventlog unless you have any objections.

If it comes up again, we'll deal with it in the future.

Regards,

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20140111/50ec491f/attachment.html>


More information about the win32utils-devel mailing list