Disable some tests if running on root. by phprus · Pull Request #118 · gulrak/filesystem · GitHub
Skip to content

Disable some tests if running on root. - #118

Merged
gulrak merged 1 commit into
gulrak:masterfrom
phprus:test-root-unix
Apr 26, 2021
Merged

Disable some tests if running on root.#118
gulrak merged 1 commit into
gulrak:masterfrom
phprus:test-root-unix

Conversation

@phprus

@phprus phprus commented Apr 23, 2021

Copy link
Copy Markdown
Contributor

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

gulrak commented Apr 26, 2021

Copy link
Copy Markdown
Owner

@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