wz1000 / HieDb

Generates a references DB from .hie files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test failure due to different ordering

felixonmars opened this issue · comments

  test/Main.hs:265:3:
  1) hiedb, Command line, ls, lists the indexed modules
       expected: "/build/haskell-hiedb/src/HieDb-0.3.0.1/test/tmp/Sub/Module2.hie\tSub.Module2\tmain\n/build/haskell-hiedb/src/HieDb-0.3.0.1/test/tmp/Module1.hie\tModule1\tmain\n"
        but got: "/build/haskell-hiedb/src/HieDb-0.3.0.1/test/tmp/Module1.hie\tModule1\tmain\n/build/haskell-hiedb/src/HieDb-0.3.0.1/test/tmp/Sub/Module2.hie\tSub.Module2\tmain\n"

  To rerun use: --match "/hiedb/Command line/ls/lists the indexed modules/"

Randomized with seed 225274260

Finished in 1.9663 seconds
24 examples, 1 failure
Test suite hiedb-tests: FAIL

Hmm, I guess the order files are indexed is locale-dependent because of listDirectory.

Does 62e24fb help?

The locale in my build environment is set to en_US.UTF-8.

Does 62e24fb help?

It passes with this change. Many thanks!

The locale in my build environment is set to en_US.UTF-8.

Probably file-system dependent then.