Skip to content

Re-enable NSKIP030 - #857

Merged
ppenna merged 1 commit into
nanvix/v3.12.3from
nskip/030
Aug 5, 2026
Merged

ppenna merged 1 commit into
nanvix/v3.12.3from
nskip/030

Conversation

@ada-x64

@ada-x64 ada-x64 commented Jul 31, 2026

Copy link
Copy Markdown

Closes #510

What

Remove NSKIP030 guards on the dup2 tests in test_os / test_posix.

Why

dup2 rejects invalid and negative fds now. (test_os stays excluded for unrelated failures.)
Verified the full lifecycle on Linux.

Copilot AI lite review requested due to automatic review settings July 31, 2026 22:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR re-enables the dup2 regression coverage by removing the Nanvix-specific NSKIP030 skips from the dup2-related tests, aligning the test suite with the updated behavior that invalid/negative FDs now raise EBADF.

Changes:

  • Remove the NSKIP030 Nanvix guard from posix.dup2() test coverage in Lib/test/test_posix.py.
  • Remove the NSKIP030 Nanvix guards from os.dup2() tests (including negative-FD cases) in Lib/test/test_os.py.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Lib/test/test_posix.py Removes the Nanvix-specific skip so the posix.dup2() test runs again.
Lib/test/test_os.py Removes the Nanvix-specific skips so os.dup2() invalid/negative-FD behavior is tested again.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings August 3, 2026 14:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@ada-x64
ada-x64 marked this pull request as ready for review August 3, 2026 14:42
dup2 rejects invalid and negative fds now. (test_os stays excluded for unrelated failures.)
Copilot AI review requested due to automatic review settings August 5, 2026 16:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@ppenna
ppenna merged commit d8499ee into nanvix/v3.12.3 Aug 5, 2026
13 checks passed
@ppenna
ppenna deleted the nskip/030 branch August 5, 2026 16:31
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.

[NSKIP030] os.dup2() accepts invalid fd silently

3 participants