app: pin inspect's dll_flags rendering with unit tests (#502) #507

Manually merged
github merged 1 commit from github-bot/gh-503 into main 2026-11-28 01:59:24 +00:00 AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:23 UTC · original
AnastasisKon:vibe/dll-flags-tests-1705ac → main · +29 −0 · 1 files · 1 commits · merged 2026-11-28 01:57 UTC

What this changes

Refs #506. Test-only: apps/victory/src/inspect.rs's dll_flags(v: u16) (the parenthesised names victory inspect prints for a PE's DllCharacteristics) is now pinned — no flags → empty string, each known bit → its name, several bits → the table's fixed order (not bit order), unknown bits ignored.

How it was tested

  • cargo test -p victory — 9 lib tests pass, incl. the new inspect::tests::dll_flags_render_names_in_the_table_order_not_bit_order
  • cargo test -p victory-hle -p victory-gpu -p xtask — pass (RC=0)
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — pass (RC=0, 0 errors)
  • cargo xtask policy — pass (398 files ok)
  • Ran the game: not needed (test-only)

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour — n/a
  • New diagnostics behind a VICTORY_* variable — n/a, none added
**@⁠AnastasisKon** on GitHub · 2026-11-27 22:23 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/503) `AnastasisKon:vibe/dll-flags-tests-1705ac` → `main` · +29 −0 · 1 files · 1 commits · merged 2026-11-28 01:57 UTC ## What this changes Refs #506. Test-only: `apps/victory/src/inspect.rs`'s `dll_flags(v: u16)` (the parenthesised names `victory inspect` prints for a PE's DllCharacteristics) is now pinned — no flags → empty string, each known bit → its name, several bits → the table's fixed order (not bit order), unknown bits ignored. ## How it was tested - [x] `cargo test -p victory` — 9 lib tests pass, incl. the new `inspect::tests::dll_flags_render_names_in_the_table_order_not_bit_order` - [x] `cargo test -p victory-hle -p victory-gpu -p xtask` — pass (RC=0) - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` — pass (RC=0, 0 errors) - [x] `cargo xtask policy` — pass (398 files ok) - [x] Ran the game: not needed (test-only) ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour — n/a - [x] New diagnostics behind a `VICTORY_*` variable — n/a, none added
Refs #502. No flags render empty, each known DllCharacteristics bit renders
its name, several flags render in the table's fixed order (not bit order),
and unknown bits are ignored.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:28:43 +00:00
github manually merged commit be6f22d14a into main 2026-11-28 01:59:24 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 01:57 UTC · original · approved these changes

Check report (helping the maintainer clear the queue):

  • CI: check and macos-scripts green on the current head.
  • Read: the whole diff (tests only). It pins dll_flags: table order rather than bit order, and unknown bits ignored.
  • Local check: current main (6f95c132) merged with #507, #417 and #439. On it, the victory-gpu (arm64) and victory tests pass, as do Windows clippy (-D warnings) and cargo xtask policy. One victory-gpu run in three failed main's own multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately, a test that also flakes on main alone.
  • Not checked: no game run (the maintainer asked us to work on GitHub only).

Thanks @⁠AnastasisKon!

**@⁠Olima34** on GitHub · 2026-11-28 01:57 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/503#pullrequestreview-6095054708) · **approved these changes** Check report (helping the maintainer clear the queue): - **CI:** `check` and `macos-scripts` green on the current head. - **Read:** the whole diff (tests only). It pins `dll_flags`: table order rather than bit order, and unknown bits ignored. - **Local check:** current main (6f95c132) merged with #507, #417 and #439. On it, the `victory-gpu` (arm64) and `victory` tests pass, as do Windows clippy (`-D warnings`) and `cargo xtask policy`. One `victory-gpu` run in three failed main's own `multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately`, a test that also flakes on main alone. - **Not checked:** no game run (the maintainer asked us to work on GitHub only). Thanks @⁠AnastasisKon!
This discussion has been locked. Commenting is limited to contributors.
No description provided.