[pr-tests][linux-proton] Five more tests pass under Wine without changing what they check on Windows #354

Open
ntsthay wants to merge 1 commit from ntsthay/wine-tests-2 into main AGit
First-time contributor

Tests only. Nothing here runs in the game.

Contributor role (optional)

  • Fluxer ID:

What it changes

Five more tests that fail under Wine (Proton on Linux) because the platform differs from Windows. Each one checks only what Wine can show, and only under Wine. On Windows every test checks what it checked before.

  • windows_is_not_wine: it now asserts that on_wine() matches whether ntdll.dll has the wine_get_version export, read from the file. On Windows that is still false.
  • a_copy_of_windows_own_direct3d_12_is_set_aside_for_system32s: under Wine, System32's d3d12.dll is vkd3d-proton's, so it is not read as Windows' own. The rest of the test runs as before.
  • ambient::neutral_probe_replaces_colour_without_depth_and_preserves_bounds: Wine has no WARP adapter.
  • descriptor::host::formats_without_buffer_support_fail_the_host_check: vkd3d-proton reports buffer support for a format when the Vulkan driver has it. On an RTX 4080 that includes R8G8B8A8_UNORM_SRGB, so that view is valid there. Under Wine the test skips a format the host supports.
  • list::a_copy_between_bc_families_fails_close: vkd3d-proton does not refuse a copy between BC families. The copy within one family is still checked.

How it was tested

  • Tested revision: 83557ed, this branch on f3840d7.
  • Commands and results: these five tests with cargo nextest run under Proton (proton-cachyos, RTX 4080): all pass; on f3840d7 each fails.
  • Gates 1 and 2 are clean for darner and darner-gpu. Gate 3 ran under Wine, not on Windows.
  • Coverage gaps: not run on Windows.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #349 makes other tests pass under Wine, in other files.
Tests only. Nothing here runs in the game. ## Contributor role (optional) - Fluxer ID: ## What it changes Five more tests that fail under Wine (Proton on Linux) because the platform differs from Windows. Each one checks only what Wine can show, and only under Wine. On Windows every test checks what it checked before. - `windows_is_not_wine`: it now asserts that `on_wine()` matches whether ntdll.dll has the `wine_get_version` export, read from the file. On Windows that is still false. - `a_copy_of_windows_own_direct3d_12_is_set_aside_for_system32s`: under Wine, System32's `d3d12.dll` is vkd3d-proton's, so it is not read as Windows' own. The rest of the test runs as before. - `ambient::neutral_probe_replaces_colour_without_depth_and_preserves_bounds`: Wine has no WARP adapter. - `descriptor::host::formats_without_buffer_support_fail_the_host_check`: vkd3d-proton reports buffer support for a format when the Vulkan driver has it. On an RTX 4080 that includes `R8G8B8A8_UNORM_SRGB`, so that view is valid there. Under Wine the test skips a format the host supports. - `list::a_copy_between_bc_families_fails_close`: vkd3d-proton does not refuse a copy between BC families. The copy within one family is still checked. ## How it was tested - Tested revision: `83557ed`, this branch on `f3840d7`. - Commands and results: these five tests with `cargo nextest run` under Proton (proton-cachyos, RTX 4080): all pass; on `f3840d7` each fails. - Gates 1 and 2 are clean for `darner` and `darner-gpu`. Gate 3 ran under Wine, not on Windows. - Coverage gaps: not run on Windows. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #349 makes other tests pass under Wine, in other files.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/354/head:ntsthay/wine-tests-2'
git switch 'ntsthay/wine-tests-2'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'ntsthay/wine-tests-2'
git switch 'ntsthay/wine-tests-2'
git rebase 'main'
git switch 'main'
git merge --ff-only 'ntsthay/wine-tests-2'
git switch 'ntsthay/wine-tests-2'
git rebase 'main'
git switch 'main'
git merge --no-ff 'ntsthay/wine-tests-2'
git switch 'main'
git merge --squash 'ntsthay/wine-tests-2'
git switch 'main'
git merge --ff-only 'ntsthay/wine-tests-2'
git switch 'main'
git merge 'ntsthay/wine-tests-2'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!354
No description provided.