Skip to content

[Helper] FileSystem: add more unittests#6095

Merged
alxbilger merged 2 commits into
sofa-framework:masterfrom
fredroy:add_filesystem_unittests
May 19, 2026
Merged

[Helper] FileSystem: add more unittests#6095
alxbilger merged 2 commits into
sofa-framework:masterfrom
fredroy:add_filesystem_unittests

Conversation

@fredroy
Copy link
Copy Markdown
Contributor

@fredroy fredroy commented Apr 24, 2026

Should test everything except openFileWithDefaultApplication


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@fredroy fredroy added pr: status to review To notify reviewers to review this pull-request pr: test PR adding test(s) in SOFA pr: AI-aided Label notifying the reviewers that part or all of the PR has been generated with the help of an AI labels Apr 24, 2026
Comment thread Sofa/framework/Helper/test/system/FileSystem_test.cpp
fredroy added 2 commits May 19, 2026 09:58
The Win32 listDirectory was returning false (no error) when FindFirstFile failed with INVALID_HANDLE_VALUE. This is inconsistent with the Unix codepath (which returns true on opendir failure) and with the documented convention
  (@return true on error). As a result, findFiles never saw the error and returned 0 instead of -1 on Windows.
@alxbilger alxbilger force-pushed the add_filesystem_unittests branch from b1ba28c to d9b55ee Compare May 19, 2026 07:58
@alxbilger alxbilger added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels May 19, 2026
@alxbilger alxbilger merged commit 3aa6967 into sofa-framework:master May 19, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: AI-aided Label notifying the reviewers that part or all of the PR has been generated with the help of an AI pr: status ready Approved a pull-request, ready to be squashed pr: test PR adding test(s) in SOFA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants