Skip to content

test: avoid DriveInfo.GetDrives() crash on macOS in simulated DriveInfo.Wrap test - #1168

Merged
vbreuss merged 1 commit into
mainfrom
test/drive-info-wrap-macos-crash
Oct 30, 2026
Merged

vbreuss merged 1 commit into
mainfrom
test/drive-info-wrap-macos-crash

Conversation

@vbreuss

@vbreuss vbreuss commented Oct 30, 2026

Copy link
Copy Markdown
Member

The macOS unit tests crashed the test host with an AccessViolationException inside System.IO.DriveInfo.GetDrives(). The existing Test.RunsOnMac skip did not apply, because in simulated mock rows Test reflects the simulated OS, so the Linux and Windows simulations on a macOS host still called GetDrives(). The test only needs any DriveInfo to pass to Wrap, so it now creates one from the root of the temp path, which also lets it run on macOS.

…fo.Wrap test

The macOS unit tests crashed the test host with an AccessViolationException inside System.IO.DriveInfo.GetDrives(). The existing Test.RunsOnMac skip did not apply, because in simulated mock rows Test reflects the simulated OS, so the Linux and Windows simulations on a macOS host still called GetDrives(). The test only needs any DriveInfo to pass to Wrap, so it now creates one from the root of the temp path, which also lets it run on macOS.
@vbreuss vbreuss self-assigned this Oct 30, 2026
Copilot AI balanced review requested due to automatic review settings October 30, 2026 07:01

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@sonarqubecloud

Copy link
Copy Markdown

@mergify

mergify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@github-actions

Copy link
Copy Markdown

Test Results

     62 files  ±0       62 suites  ±0   1h 17m 41s ⏱️ + 2m 40s
 66 190 tests  - 3   62 678 ✅  - 3   3 512 💤 ±0  0 ❌ ±0 
151 386 runs  ±0  136 625 ✅ +9  14 761 💤  - 9  0 ❌ ±0 

Results for commit 37f0a25. ± Comparison against base commit a856b45.

This pull request removes 63024 and adds 63020 tests. Note that renamed tests count towards both.
  )
)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(14baa4e9-70a9-449b-a40f-bcf29cff42dd)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(1ffc359f-8000-488c-98c1-c07a43c14308)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(3342e179-e725-4ef4-909c-f8281e68e96f)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(37b5317c-fe2f-4cdd-92d9-7ef02dfb7ac1)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(4369ef53-4990-441f-9781-e59897343682)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(66a09c8e-a7fb-4f48-a979-bce0534aced2)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(806ada1a-37a2-42ec-a9ee-c8841aa613fa)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(9eed6268-e472-4724-ad2c-aa3bcf990ba7)
…
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(0ab8500d-5722-4313-8611-50fa653c3921)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(0fe87aff-aa46-49db-a0ee-99e6644c9c30)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(1d8fa9bc-cb70-44a6-a832-7aeb7b078a9b)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(25e05945-7f37-4e62-831f-615679602d4e)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(4a68f0e5-10ae-4d23-bc8c-ab09addf30d0)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(56e0dd48-1dc6-4745-b6c3-c935188e49ba)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(6051c388-a08c-4900-86fa-e196dc3eecf0)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(69b75efc-0e45-470e-9ed1-ee15b295fea4)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(6bc22711-a290-43f8-9688-cdb449b3598f)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(6c61a20b-f6f1-4277-ad9b-b1d33efc3859)
…
This pull request removes 3484 skipped tests and adds 3484 skipped tests. Note that renamed tests count towards both.
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(1494bc72-5ffa-47ac-8e27-e261015d8d4d)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(3aa11bb6-937b-47a3-8723-446b10c3811c)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(4745d39f-40f2-4b46-a8e5-3596c90b894b)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(a72b17b3-314c-4f52-8004-5cfbd5c9af22)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(c6d2434d-2612-4bed-a92d-d5b16f226b71)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(f22dd0dd-540e-4db6-be3d-ff0cee4d3ef9)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ SetUnixFileMode_SafeFileHandle_ShouldUpdateValue(359ae5dc-65d0-40f8-be7c-f51c9ec344fc, None)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ SetUnixFileMode_SafeFileHandle_ShouldUpdateValue(947c3d3a-70b7-49fb-aa39-6fedfc5e2b3c, None)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ SetUnixFileMode_SafeFileHandle_ShouldUpdateValue(e7292f69-bb03-4185-a050-a7ae5463e81a, None)
Testably.Abstractions.Testing.Tests.FileSystem.FileStreamFactoryMockTests ‑ New_ShouldSetUnixFileMode(Append, 8303e341-cd70-420f-a074-d7afaef29952)
…
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(652f7e6f-0ef3-4f8d-8306-e70dcdc99052)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(6940df02-6745-4c7a-9af6-eb7ab173f6fb)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(78366ce7-9c0b-4a3f-b7b2-7b6baad9f84c)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(d5ef9b30-09a4-42ab-9d3e-7600fee279f7)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(ee58f9a4-0e09-4ec4-9b11-887642a2054b)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ GetUnixFileMode_SafeFileHandle_ShouldThrowPlatformNotSupportedExceptionOnWindows(f9c73c99-e698-4664-a60e-0bebba49927b)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ SetUnixFileMode_SafeFileHandle_ShouldUpdateValue(7c8a1948-8e4e-40d6-aef4-9476f8c5f04e, None)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ SetUnixFileMode_SafeFileHandle_ShouldUpdateValue(7e3a83c3-d88e-4100-adb7-c2047f237ec1, None)
Testably.Abstractions.Testing.Tests.FileSystem.FileMockTests ‑ SetUnixFileMode_SafeFileHandle_ShouldUpdateValue(86c96723-e59c-4604-8c54-da4ddebbeb98, None)
Testably.Abstractions.Testing.Tests.FileSystem.FileStreamFactoryMockTests ‑ New_ShouldSetUnixFileMode(Append, 2ac01f51-683f-4f12-a770-6bdf7d1d4448)
…

@vbreuss
vbreuss merged commit 376be92 into main Oct 30, 2026
14 checks passed
@vbreuss
vbreuss deleted the test/drive-info-wrap-macos-crash branch October 30, 2026 08:03
@github-actions

Copy link
Copy Markdown

This is addressed in release v7.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants