Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure on armhf #16

Open
lucaskanashiro opened this issue Feb 13, 2020 · 0 comments
Open

Test failure on armhf #16

lucaskanashiro opened this issue Feb 13, 2020 · 0 comments

Comments

@lucaskanashiro
Copy link

One test is failing when executed on armhf, using ruby 2.5:

RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-strptime/usr/lib/arm-linux-gnueabihf/ruby/vendor_ruby/2.5.0:/<<PKGBUILDDIR>>/debian/ruby-strptime/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-strptime/usr/share/rubygems-integration/2.5.0:/var/lib/gems/2.5.0:/usr/lib/ruby/gems/2.5.0:/usr/share/rubygems-integration/2.5.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/2.5.0 ruby2.5 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb

Strftime
  parses %Y
  parses %y
  parses %b
  parses %m
  parses %d
  parses %H
  parses %M
  parses %S
  parses %N
  parses %N
  raises %Z
  raises %z
  parses empty format
  raises when taking %A
  parses "%Y-%m-%dT%H:%M:%S.%LZ"
  execi "%Y-%m-%dT%H:%M:%S.%LZ"
  #new
    raises ArgumentError without arguments
    returns a Strftime object
  result encoding
    is same with given format encoding

Strptime
  has a version number
  parses %Y
  parses %y (FAILED - 1)
  parses %m
  parses %d
  parses %B
  parses %H
  parses %M
  parses %S
  parses %N
  parses %Y%m%d%H%M%S with gmtoff
  parses %Y%m%d%H%M%S
  parses %Y-%m-%d %H:%M:%S
  parses %d
  parses %S%z
  parses %z
  parses empty format
  parses %Y%d%m %z
  raises when taking %A
  parses %Y%d%m %z
  #new
    raises ArgumentError without arguments
    returns a Strptime object
  America/Los_Angeles
    parses %Y-%d-%m %H:%M:%S

Failures:

  1) Strptime parses %y
     Failure/Error: expect(pr.exec("68").year).to eq(2068)

     ArgumentError:
       string doesn't match
     # ./spec/strptime_spec.rb:32:in `exec'
     # ./spec/strptime_spec.rb:32:in `block (2 levels) in <top (required)>'

Finished in 0.08421 seconds (files took 0.36666 seconds to load)
42 examples, 1 failure

Failed examples:

rspec ./spec/strptime_spec.rb:25 # Strptime parses %y

I got this trying to rebuild the Ubuntu package ruby-strptime, you can check the full log here: https://launchpadlibrarian.net/464856833/buildlog_ubuntu-focal-armhf.ruby-strptime_0.2.3-4build1_BUILDING.txt.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant