Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit f81c366

Browse files
authored
Merge pull request #2544 from ibuclaw/solarismtx
core/sync/mutex.d: Solaris is not a well behaved C runtime merged-on-behalf-of: Nicholas Wilson <[email protected]>
2 parents bff65db + 7e971c0 commit f81c366

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/core/sync/mutex.d

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,15 @@ unittest
372372
// should happen only from a single thread.
373373
(cast(Mutex) mtx).__dtor();
374374

375-
// Verify that the underlying implementation has been destroyed
376-
// by checking that locking is not possible. This assumes
377-
// that the underlying implementation is well behaved
378-
// and makes the object non-lockable upon destruction.
379-
// The Bionic and Musl C runtimes and DragonFly don't appear to do so, so skip this test.
375+
// Verify that the underlying implementation has been destroyed by checking
376+
// that locking is not possible. This assumes that the underlying
377+
// implementation is well behaved and makes the object non-lockable upon
378+
// destruction. The Bionic, DragonFly, Musl, and Solaris C runtimes don't
379+
// appear to do so, so skip this test.
380380
version (CRuntime_Bionic) {} else
381381
version (CRuntime_Musl) {} else
382382
version (DragonFlyBSD) {} else
383+
version (Solaris) {} else
383384
assert(!mtx.tryLock_nothrow());
384385

385386
free(cast(void*) mtx);

0 commit comments

Comments
 (0)