Giter Site home page Giter Site logo

test suite failure about yauzl HOT 10 CLOSED

thejoshwolfe avatar thejoshwolfe commented on July 18, 2024
test suite failure

from yauzl.

Comments (10)

malakada avatar malakada commented on July 18, 2024

https://gist.github.com/melissanoelle/f51a4da688522e16d0bf

from yauzl.

andrewrk avatar andrewrk commented on July 18, 2024

looks like maybe it's somehow an OSX issue. Travis wouldn't catch that.

from yauzl.

thejoshwolfe avatar thejoshwolfe commented on July 18, 2024

The test is complaining that there folder test/success/unicode/Turmion Kätilöt doesn't exist. Can you post the results of this command?

$ find test/success/unicode/
test/success/unicode/
test/success/unicode/Turmion Kätilöt
test/success/unicode/Turmion Kätilöt/Hoitovirhe
test/success/unicode/Turmion Kätilöt/Hoitovirhe/Rautaketju.mp3
test/success/unicode/Turmion Kätilöt/Pirun nyrkki
test/success/unicode/Turmion Kätilöt/Pirun nyrkki/Mistä veri pakenee.mp3

from yauzl.

thejoshwolfe avatar thejoshwolfe commented on July 18, 2024

here's another thing to try:

$ node -e "var fs=require('fs');console.log(fs.readdirSync('test/success/unicode'))"
[ 'Turmion Kätilöt' ]

from yauzl.

malakada avatar malakada commented on July 18, 2024
[Thu Oct 16 14:16:07]$ find test/success/unicode
test/success/unicode
test/success/unicode/Turmion Kätilöt
test/success/unicode/Turmion Kätilöt/Hoitovirhe
test/success/unicode/Turmion Kätilöt/Hoitovirhe/Rautaketju.mp3
test/success/unicode/Turmion Kätilöt/Pirun nyrkki
test/success/unicode/Turmion Kätilöt/Pirun nyrkki/Mistä veri pakenee.mp3
[Thu Oct 16 15:03:06]$ node -e "var fs=require('fs');console.log(fs.readdirSync('test/success/unicode'))"
[ 'Turmion Kätilöt' ]

from yauzl.

thejoshwolfe avatar thejoshwolfe commented on July 18, 2024

I've reproduced this error on windows.

from yauzl.

thejoshwolfe avatar thejoshwolfe commented on July 18, 2024

I've reproduced this error on windows.

false alarm. I ran into a different problem.

from yauzl.

thejoshwolfe avatar thejoshwolfe commented on July 18, 2024

Thanks andrewrk and melissanoelle for helping chase this issue down. It turns out unicode file names are spooky on mac. If a file name has an ä, linux and windows encode it as the unicode "\xc3\xa4", which is just the letter ä. But on mac, ä is an a followed by an umlaut: "\x61\xcc\x88". Why does mac make this more complicated? Why are there two ways to make the ä character in unicode? Whatever.

The conclusion is that the test harness can't trust the host file system, since some file systems scramble the bytes of the file names. I'll need to move the test data into the test code so that expected file paths are deterministic.

from yauzl.

thejoshwolfe avatar thejoshwolfe commented on July 18, 2024

@maxogden, could you see if there are still any test failures for you? thanks.

from yauzl.

maxogden avatar maxogden commented on July 18, 2024

@thejoshwolfe yep they pass now, thanks!

from yauzl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.