[Rake-devel] Rake unit tests broken on ext3 FS

Adam Majer adamm at zombino.com
Mon Jan 28 00:35:43 EST 2008

The unit tests below work perfectly on ext2 and xfs. They break on a
default ext3 filesystem.

  1) Failure:
test_inspect_pending(TestFileList) [./test/test_filelist.rb:212]:
<"[\"testdata/abc.c\", \"testdata/abc.h\", \"testdata/abc.x\"]">
expected but was
<"[\"testdata/abc.x\", \"testdata/abc.h\", \"testdata/abc.c\"]">.

  2) Failure:
test_to_s_pending(TestFileList) [./test/test_filelist.rb:207]:
<"testdata/abc.c testdata/abc.h testdata/abc.x"> expected but was
<"testdata/abc.x testdata/abc.h testdata/abc.c">.

The problem seems to be that rake does not order the file list, just
relies on the underlying file system to return it in the "correct" order.

For the complete bug report, see http://bugs.debian.org/462817

Any thoughts? Or the fix is just to use sort after resolve_add is done?

- Adam

More information about the Rake-devel mailing list