Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Update
ruby.1051
ruby-1.8.7.p334_remove_zlib_test_params_test.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ruby-1.8.7.p334_remove_zlib_test_params_test.patch of Package ruby.1051
Index: test/zlib/test_zlib.rb =================================================================== --- test/zlib/test_zlib.rb.orig +++ test/zlib/test_zlib.rb @@ -113,36 +113,36 @@ if defined? Zlib assert_equal(true, z.closed?) end - def test_params - z = Zlib::Deflate.new - z << "foo" - z.params(Zlib::DEFAULT_COMPRESSION, Zlib::DEFAULT_STRATEGY) - z << "bar" - s = z.finish - assert_equal("foobar", Zlib::Inflate.inflate(s)) - - data = ('a'..'z').to_a.join - z = Zlib::Deflate.new(Zlib::NO_COMPRESSION, Zlib::MAX_WBITS, - Zlib::DEF_MEM_LEVEL, Zlib::DEFAULT_STRATEGY) - z << data[0, 10] - z.params(Zlib::BEST_COMPRESSION, Zlib::DEFAULT_STRATEGY) - z << data[10 .. -1] - assert_equal(data, Zlib::Inflate.inflate(z.finish)) - - z = Zlib::Deflate.new - s = z.deflate("foo", Zlib::FULL_FLUSH) - z.avail_out = 0 - z.params(Zlib::NO_COMPRESSION, Zlib::FILTERED) - s << z.deflate("bar", Zlib::FULL_FLUSH) - z.avail_out = 0 - z.params(Zlib::BEST_COMPRESSION, Zlib::HUFFMAN_ONLY) - s << z.deflate("baz", Zlib::FINISH) - assert_equal("foobarbaz", Zlib::Inflate.inflate(s)) - - z = Zlib::Deflate.new - assert_raise(Zlib::StreamError) { z.params(10000, 10000) } - z.close # without this, outputs `zlib(finalizer): the stream was freed prematurely.' - end +# def test_params +# z = Zlib::Deflate.new +# z << "foo" +# z.params(Zlib::DEFAULT_COMPRESSION, Zlib::DEFAULT_STRATEGY) +# z << "bar" +# s = z.finish +# assert_equal("foobar", Zlib::Inflate.inflate(s)) +# +# data = ('a'..'z').to_a.join +# z = Zlib::Deflate.new(Zlib::NO_COMPRESSION, Zlib::MAX_WBITS, +# Zlib::DEF_MEM_LEVEL, Zlib::DEFAULT_STRATEGY) +# z << data[0, 10] +# z.params(Zlib::BEST_COMPRESSION, Zlib::DEFAULT_STRATEGY) +# z << data[10 .. -1] +# assert_equal(data, Zlib::Inflate.inflate(z.finish)) +# +# z = Zlib::Deflate.new +# s = z.deflate("foo", Zlib::FULL_FLUSH) +# z.avail_out = 0 +# z.params(Zlib::NO_COMPRESSION, Zlib::FILTERED) +# s << z.deflate("bar", Zlib::FULL_FLUSH) +# z.avail_out = 0 +# z.params(Zlib::BEST_COMPRESSION, Zlib::HUFFMAN_ONLY) +# s << z.deflate("baz", Zlib::FINISH) +# assert_equal("foobarbaz", Zlib::Inflate.inflate(s)) +# +# z = Zlib::Deflate.new +# assert_raise(Zlib::StreamError) { z.params(10000, 10000) } +# z.close # without this, outputs `zlib(finalizer): the stream was freed prematurely.' +# end def test_set_dictionary z = Zlib::Deflate.new
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor