Skip to content

bug: Net::Server threaded server test exits after two assertions #1139

Description

@fglock

Failure

The CPAN compatibility run 20260826-133506-83222 reports a failure for Net::Server 2.018:

t/Server_Thread.t
# Looks like you planned 5 tests but ran 2

The test successfully confirms Perl thread support and allocates a local test port, then exits before its remaining assertions.

Reproduction

From an unpacked Net::Server 2.018 distribution (with the project's existing fork-test skip patch applied), run:

jperl -Iblib/lib -It t/Server_Thread.t
jperl --interpreter -Iblib/lib -It t/Server_Thread.t

Both backends produce the bad plan after ok 1 - Can thread on this platform and ok 2 - Got needed ports (20200).

Expected behavior

The upstream test completes all five assertions. System Perl 5.42.2 passes the complete Net::Server 2.018 suite in the same loopback-capable environment: 34 files and 265 tests.

Scope

Net::Server 2.018 is pure Perl (no XS/C source). This appears to be a PerlOnJava threaded-runtime issue, likely in the server-thread execution or its pipe coordination, rather than an unsupported native dependency or test-environment failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:backendJVM interpreter or execution-backend behaviorarea:ioFiles handles paths and networkingbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions