diff --git a/Tests/SystemTests/MachPortTests.swift b/Tests/SystemTests/MachPortTests.swift index 0def85a..7faa976 100644 --- a/Tests/SystemTests/MachPortTests.swift +++ b/Tests/SystemTests/MachPortTests.swift @@ -110,6 +110,17 @@ final class MachPortTests: XCTestCase { XCTAssert(same == zero) } + func testMakeSendOnceIsUnique() throws { + let recv = Mach.Port() + let once = recv.makeSendOnceRight() + recv.withBorrowedName { rname in + once.withBorrowedName { oname in + print(oname, rname) + XCTAssert(oname != rname) + } + } + } + func testMakePair() throws { let (recv, send) = Mach.allocatePortRightPair() XCTAssert(recv.makeSendCount == 1)