Tests of Linux-only features return early on Windows #11

Closed
opened 2026-10-31 12:41:49 -04:00 by claude · 0 comments
Owner
  • Draft: REL-5
  • Priority: low (test-only)
  • Agent: coder
  • Depends on: none
  • Decisions: none

Why

DHCP, Router Advertisement and passive device presence need Linux (CHANGELOG.md:58,139), yet
their live tests run on Windows and fail: 2 ArpNeighborTableClientIdentityResolverTests read
C:\proc\net\arp; 2 Dhcpv4/6LiveServiceControlTests fail with "An existing connection was
forcibly closed by the remote host" at ReceiveFromAsync; 2
Icmpv6RaListenerLiveServiceControlTests fail an Assert.True.

What changes

Add an if (!OperatingSystem.IsLinux()) return; guard (the repository's pattern for missing
platform support, as the QUIC and IPv6 guards do, AGENTS.md "Test") with a one-line reason
comment, in src/dotnet/tests/Ninlil.Dns.Server.ClientIdentity.Tests/ArpNeighborTableClientIdentityResolverTests.cs,
the DHCPv4/DHCPv6 live service-control tests and
src/dotnet/tests/Ninlil.Dhcp.Server.Ra.Tests/Icmpv6RaListenerLiveServiceControlTests.cs.
Parser tests that need no /proc stay unguarded.

Acceptance

  • The 6 tests report passed on Windows and still run (not return) on Linux: show a Linux run
    where a deliberately broken assertion in one of them fails.

Source

RP-4 report finding 3 ("Linux-only", "Live DHCP and RA service-control tests").

- **Draft:** REL-5 - **Priority:** low (test-only) - **Agent:** coder - **Depends on:** none - **Decisions:** none ### Why DHCP, Router Advertisement and passive device presence need Linux (`CHANGELOG.md:58,139`), yet their live tests run on Windows and fail: 2 `ArpNeighborTableClientIdentityResolverTests` read `C:\proc\net\arp`; 2 `Dhcpv4/6LiveServiceControlTests` fail with "An existing connection was forcibly closed by the remote host" at `ReceiveFromAsync`; 2 `Icmpv6RaListenerLiveServiceControlTests` fail an `Assert.True`. ### What changes Add an `if (!OperatingSystem.IsLinux()) return;` guard (the repository's pattern for missing platform support, as the QUIC and IPv6 guards do, AGENTS.md "Test") with a one-line reason comment, in `src/dotnet/tests/Ninlil.Dns.Server.ClientIdentity.Tests/ArpNeighborTableClientIdentityResolverTests.cs`, the DHCPv4/DHCPv6 live service-control tests and `src/dotnet/tests/Ninlil.Dhcp.Server.Ra.Tests/Icmpv6RaListenerLiveServiceControlTests.cs`. Parser tests that need no `/proc` stay unguarded. ### Acceptance - [ ] The 6 tests report passed on Windows and still run (not return) on Linux: show a Linux run where a deliberately broken assertion in one of them fails. ### Source RP-4 report finding 3 ("Linux-only", "Live DHCP and RA service-control tests").
Sign in to join this conversation.
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.

Reference
lantea-one/ninlil#11
No description provided.