Skip to content

Failure to create test fixtures on JRuby #104

@jkutner

Description

@jkutner

Under JRuby, the rake command fails the first time. For example:

$ ruby -v 
jruby 1.7.5 (1.9.3p392) 2013-10-07 74e9291 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_09-b05 [darwin-x86_64]
$ bundle exec rake
...
adding: data/file2.txt (deflated 79%)
deleting: data/file2.txt
    zip warning: zip file empty
RuntimeError: No such file or directory - data/generated/empty_chmod640.txt

ziptest.rb requires the Info-ZIP program 'zip' in the path
to create test data. If you don't have it you can download
the necessary test files at http://sf.net/projects/rubyzip.
  create_test_zips at /Users/jkutner/workspace/rubyzip/test/gentestfiles.rb:141
            (root) at /Users/jkutner/workspace/rubyzip/test/gentestfiles.rb:159

But if I remove line 96 from test/gentestfiles.rb the task works and all tests pass. Also, if the fixtures where created by MRI, then the tests pass under JRuby.

Are there any suggested work arounds? rubyzip is essential to Warbler, so I'm happy to help get it back under CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy