Skip to content

Commit

Permalink
Do not run the mkdir_p__eacces test as root
Browse files Browse the repository at this point in the history
The error condition detected by mkdir_p__eacces is not raised when running
as root, so skip this test to prevent a spurious failure.

This change was r218 in Subversion.
  • Loading branch information
jmmv authored and Julio Merino committed Feb 26, 2012
1 parent e3422d7 commit 351e3f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/fs/operations_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,11 @@ ATF_TEST_CASE_BODY(mkdir_p__already_exists)
}


ATF_TEST_CASE_WITHOUT_HEAD(mkdir_p__eacces)
ATF_TEST_CASE(mkdir_p__eacces)
ATF_TEST_CASE_HEAD(mkdir_p__eacces)
{
set_md_var("require.user", "unprivileged");
}
ATF_TEST_CASE_BODY(mkdir_p__eacces)
{
fs::mkdir(fs::path("a"), 0755);
Expand Down

0 comments on commit 351e3f7

Please sign in to comment.