Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable some tests if running on root. #118

Merged
merged 1 commit into from
Apr 26, 2021
Merged

Conversation

phprus
Copy link
Contributor

@phprus phprus commented Apr 23, 2021

On root user:

-------------------------------------------------------------------------------
fs.op.permissions - permissions
-------------------------------------------------------------------------------
/home/.../test/filesystem_test.cpp:2440
...............................................................................

/home/.../test/filesystem_test.cpp:2448: FAILED:
  CHECK_THROWS_AS( fs::resize_file("foo", 1024), fs::filesystem_error )
because no exception was thrown where one was expected:

/home/.../test/filesystem_test.cpp:2449: FAILED:
  CHECK( fs::file_size("foo") == 512 )
with expansion:
  1024 (0x400) == 512 (0x200)

-------------------------------------------------------------------------------

@gulrak
Copy link
Owner

gulrak commented Apr 26, 2021

Thank you, this was an issue on the BSD CI runs as well.

@gulrak gulrak added this to the v1.5.6 milestone Apr 26, 2021
@gulrak gulrak merged commit 777e3c9 into gulrak:master Apr 26, 2021
@phprus phprus deleted the test-root-unix branch April 16, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants