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

remove posix dependency from timportedobj #1149

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

zerbina
Copy link
Collaborator

@zerbina zerbina commented Jan 31, 2024

Summary

The reliance on the posix module made test not usable on platforms
not supporting the module. The test is reduced in order to not depend
on posix.

Details

The test was added as a regression test for a bug with
liftdestructors (fixed by
c877961),
where a hook was lifted for imported types. If the imported type
contains a field that doesn't actually exist in the imported type (this
is the case for, e.g., padding), the resulting assignment of those
fields would result in a C compiler error.

The test is changed in a way such that it's as explicit as possible (no
seq usage, no reliance on Stat).

Summary
=======

The reliance on the `posix` module made test not usable on platforms
not supporting the module. The test is reduced in order to not depend
on `posix`.

Details
=======

The test was added as a regression test for a bug with
`liftdestructors` (fixed by c877961),
where a hook was lifted for imported types. If the imported type
contains a field that doesn't actually exist in the imported (this is
the case for, e.g., padding), the resulting assignment of those fields
would result in a C compiler error.

The test is changed in a way such that it's as explicit as possible (no
`seq` usage, no reliance on `Stat`).
@zerbina zerbina added refactor Implementation refactor test Add or improve tests labels Jan 31, 2024
@saem
Copy link
Collaborator

saem commented Jan 31, 2024

/merge

Copy link

Merge requested by: @saem

Contents after the first section break of the PR description has been removed and preserved below:


@chore-runner chore-runner bot enabled auto-merge January 31, 2024 20:21
@chore-runner chore-runner bot added this pull request to the merge queue Jan 31, 2024
Merged via the queue into nim-works:devel with commit c7fd3c4 Jan 31, 2024
25 checks passed
@zerbina zerbina deleted the test-remove-posix-import branch February 3, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Implementation refactor test Add or improve tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants