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

Merged
AnastasisKon merged 1 commit from upstream-pr/503 into main 2026-11-28 01:57:26 +00:00
AnastasisKon commented 2026-11-27 22:23:38 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:23:38Z.


What this changes

Refs #502. 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
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5533872626 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/503). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:23:38Z. --- ## What this changes Refs #502. 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
Olima34 commented 2026-11-28 01:57:22 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:57:22Z.

Review: APPROVED


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 #503, #413 and #435. 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!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6095054708 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/503#pullrequestreview-6095054708). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T01:57:22Z. **Review:** APPROVED --- 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 #503, #413 and #435. 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!
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
LakshanSivakumar/Native-Victory-macOS!503
No description provided.