Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Test failed on Ruby 2.0.0 #5

Closed
t3hk0d3 opened this Issue · 1 comment

2 participants

@t3hk0d3

Both with 1.0.5 (from brew) and 1.1.0 (compiled manually)

On 1.9.3 everything works okay.

$ rake test
/Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
checking for main() in -lsnappy... yes
checking for main() in -lstdc++... yes
creating Makefile
make
compiling api.cc
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wimplicit-function-declaration" is valid for C/ObjC but not for C++
linking shared-object snappy.bundle
cp ext/snappy.bundle lib
/Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -w -I"lib" -I"/Users/tehkode/.rvm/gems/ruby-2.0.0-p0@global/gems/rake-10.0.3/lib" "/Users/tehkode/.rvm/gems/ruby-2.0.0-p0@global/gems/rake-10.0.3/lib/rake/rake_test_loader.rb" "test/test*.rb" 
Run options: --seed 45236

# Running tests:

EE.F..E......

Finished tests in 0.013815s, 941.0062 tests/s, 723.8509 assertions/s.

  1) Error:
test_0001_should yield each chunk(Snappy::Reader::each):
Snappy::Error: snappy::RawUncompress
    /Users/tehkode/Work/snappy/lib/snappy/reader.rb:15:in `inflate'
    /Users/tehkode/Work/snappy/lib/snappy/reader.rb:15:in `each'
    /Users/tehkode/Work/snappy/test/test-snappy-reader.rb:70:in `block (3 levels) in <top (required)>'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1301:in `run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:919:in `block in _run_suite'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:912:in `map'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:912:in `_run_suite'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `block in _run_suites'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `map'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `_run_suites'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:867:in `_run_anything'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1060:in `run_tests'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1047:in `block in _run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1046:in `each'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1046:in `_run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1035:in `run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:789:in `block in autorun'

  2) Error:
test_0001_should yield each line(Snappy::Reader::each_line):
Snappy::Error: snappy::RawUncompress
    /Users/tehkode/Work/snappy/lib/snappy/reader.rb:15:in `inflate'
    /Users/tehkode/Work/snappy/lib/snappy/reader.rb:15:in `each'
    /Users/tehkode/Work/snappy/lib/snappy/reader.rb:29:in `each_line'
    /Users/tehkode/Work/snappy/test/test-snappy-reader.rb:107:in `block (3 levels) in <top (required)>'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1301:in `run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:919:in `block in _run_suite'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:912:in `map'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:912:in `_run_suite'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `block in _run_suites'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `map'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `_run_suites'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:867:in `_run_anything'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1060:in `run_tests'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1047:in `block in _run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1046:in `each'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1046:in `_run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1035:in `run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:789:in `block in autorun'

  3) Failure:
test_0002_should read the header(Snappy::Reader::initialize) [/Users/tehkode/Work/snappy/test/test-snappy-reader.rb:32]:
Expected: "\x82SNAPPY\0"
  Actual: nil

  4) Error:
test_0001_should return the bytes(Snappy::Reader::read):
Snappy::Error: snappy::RawUncompress
    /Users/tehkode/Work/snappy/lib/snappy/reader.rb:15:in `inflate'
    /Users/tehkode/Work/snappy/lib/snappy/reader.rb:15:in `each'
    /Users/tehkode/Work/snappy/lib/snappy/reader.rb:21:in `read'
    /Users/tehkode/Work/snappy/test/test-snappy-reader.rb:89:in `block (3 levels) in <top (required)>'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1301:in `run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:919:in `block in _run_suite'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:912:in `map'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:912:in `_run_suite'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `block in _run_suites'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `map'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:899:in `_run_suites'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:867:in `_run_anything'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1060:in `run_tests'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1047:in `block in _run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1046:in `each'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1046:in `_run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:1035:in `run'
    /Users/tehkode/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/minitest/unit.rb:789:in `block in autorun'

13 tests, 10 assertions, 1 failures, 3 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -w -I"lib" -I"/Users/tehkode/.rvm/gems/ruby-2.0.0-p0@global/gems/rake-10.0.3/lib" "/Users/tehkode/.rvm/gems/ruby-2.0.0-p0@global/gems/rake-10.0.3/lib/rake/rake_test_loader.rb" "test/test*.rb" ]
/Users/tehkode/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
/Users/tehkode/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => test
(See full trace by running task with --trace)
@miyucy miyucy closed this issue from a commit
miyucy fix #5 b573163
@miyucy miyucy closed this in b573163
@miyucy
Owner

Thank you for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.