Skip to content

Fix inverted rmdir() result in the POSIX and stdio adapters - #12

Open
jamiecounsell wants to merge 1 commit into
attermann:masterfrom
zerokelvin-dev:rmdir-result
Open

jamiecounsell wants to merge 1 commit into
attermann:masterfrom
zerokelvin-dev:rmdir-result

Conversation

@jamiecounsell

Copy link
Copy Markdown

rmdir() in the POSIX and stdio adapters returned false when the directory was removed and true when it wasn't, the opposite of every other adapter (and of mkdir()).

Adds test/test_posix_fs, which runs the adapters against a real temp directory. The new tests fail on master and pass here.

Testing: pio test -e native. The new tests pass. test_file_store_compact_basic, test_dir_prefix_reload_index and test_dir_prefix_compact already fail on master and are unchanged.

rmdir() in the POSIX and stdio adapters returned false when the directory
was removed and true when it wasn't, the opposite of every other adapter
(and of mkdir()).

Adds test/test_posix_fs, which runs the adapters against a real temp
directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019rUgoKJdB4U8fNS9HybY8S
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.

1 participant