Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

test_atomic_write_preserves_default_file_permissions(AtomicWriteTest) fails when umask is not 0022

#823

When running tests with a umask other than 0022 the test_atomic_write_preserves_default_file_permissions(AtomicWriteTest) test will fail with:

1) Failure: test_atomic_write_preserves_default_file_permissions(AtomicWriteTest)

[./test/core_ext/file_test.rb:53:in `test_atomic_write_preserves_default_file_permissions'
 ./test/../lib/active_support/testing/setup_and_teardown.rb:94:in `__send__'
 ./test/../lib/active_support/testing/setup_and_teardown.rb:94:in `run']:

<"100644"> expected but was <"100664">.

Reported by S. Brent Faulkner · August 13th, 2008 @ 11:13 PM

State: resolved
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. S. Brent Faulkner
    S. Brent Faulkner

    I have a fix for the test, but as this is my first attempt at submitting a patch have not yet progressed quite that far... stay tuned (unless you fix the test first).

    August 13th, 2008 @ 11:14 PM

  2. S. Brent Faulkner
  3. S. Brent Faulkner
    S. Brent Faulkner
    • Tag changed from bug to bug, patch

    To reproduce the problem set your umask to 0002...

    $ umask 0002

    Then run your tests...

    $ rake test

    I've attached a patch to fix it.

    August 14th, 2008 @ 12:28 AM

  4. josh
    josh
    • State changed from new to resolved

    August 14th, 2008 @ 03:00 AM