Skip to content

test(stl): cover ThreadLocal pthread_setspecific failure path (follow-up #5310) #5322

Closed

Description

@zackees

Follow-up of #5310 / PR #5316. The pthread_setspecific failure branch in ThreadLocalReal::access() (src/fl/stl/thread_local.h) has no direct test. Forcing it needs a production hook. It goes through the same fallback-slot function that the pthread_key_create failure test covers.

To do: find a cheap, zero-cost way to inject the failure (e.g. a key-policy template parameter that is only used in tests), or document why it isn't worth doing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions