Skip to content

fix: re-enable tests on cdylib crates#39

Merged
wmmc88 merged 1 commit into
microsoft:mainfrom
wmmc88:Windows-driver-samples-test-lib-hack
Nov 20, 2025
Merged

fix: re-enable tests on cdylib crates#39
wmmc88 merged 1 commit into
microsoft:mainfrom
wmmc88:Windows-driver-samples-test-lib-hack

Conversation

@wmmc88

@wmmc88 wmmc88 commented Jun 9, 2025

Copy link
Copy Markdown
Collaborator

related to microsoft/windows-drivers-rs#327

This pull request removes the exclusion of unit tests from the root driver crates in two Cargo.toml files. This change allows unit tests to be included, despite the previous concern about linker arguments being passed to them.

Changes to Cargo.toml files:

@wmmc88
wmmc88 requested review from a team and Copilot June 9, 2025 23:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request re-enables unit tests for cdylib driver crates by removing the exclusion of tests in two Cargo.toml files.

  • Removed the "test = false" setting and corresponding comment from tools/dv/kmdf/fail_driver_pool_leak/Cargo.toml.
  • Removed the "test = false" setting and corresponding comment from general/echo/kmdf/driver/DriverSync/Cargo.toml.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
general/echo/kmdf/driver/DriverSync/Cargo.toml Removed test exclusion for the cdylib crate.
tools/dv/kmdf/fail_driver_pool_leak/Cargo.toml Removed test exclusion for the cdylib crate.
Comments suppressed due to low confidence (2)

tools/dv/kmdf/fail_driver_pool_leak/Cargo.toml:13

  • The removal of 'test = false' re-enables tests; please ensure that the current linker configuration safely handles unit tests for this cdylib crate, given the previous concerns referenced in the comment.
-test = false

general/echo/kmdf/driver/DriverSync/Cargo.toml:12

  • With tests re-enabled for this cdylib crate, verify that any issues with linker arguments noted in the removed comment are adequately addressed in your testing or build configuration.
-test = false

@wmmc88
wmmc88 enabled auto-merge (squash) June 10, 2025 17:17
@wmmc88
wmmc88 requested a review from leon-xd June 11, 2025 04:40
@wmmc88 wmmc88 self-assigned this Jun 11, 2025
@wmmc88
wmmc88 merged commit 1097401 into microsoft:main Nov 20, 2025
42 checks passed
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.

4 participants