Skip to content

Conversation

nicholasbishop
Copy link
Member

Fixed a couple of the tests that weren't testing what they were supposed to test. Also split up the tests into separate files, turns out it's pretty hard to read diffs of the output when everything is in one file.

This test is supposed to only check how bad arguments are handled, not a
bad return type. Change the return type to `Status`.
This function was supposed to be const so that it would produce an error.
It turns out that having all of the entry tests in a single file makes
it hard to read the diff when the output changes. Split each entry macro
test into its own file to fix this.

The `good_entry` function has been removed since it doesn't fail
compilation ; this case is already tested by uefi-test-runner anyway.
@GabrielMajeri
Copy link
Collaborator

The new test structure looks good, thank you!

@GabrielMajeri GabrielMajeri merged commit fff4644 into rust-osdev:main Jul 27, 2022
@nicholasbishop nicholasbishop deleted the bishop-improve-entry-tests branch July 28, 2022 01:43
e820 pushed a commit to e820/uefi-rs that referenced this pull request Jul 30, 2022
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