Differences From Artifact [a9dd0b5f94]:
- File
tests/OFUNIXDatagramSocketTests.m
— part of check-in
[51a7aea28e]
at
2022-04-24 11:58:03
on branch trunk
— tests: Use /tmp for UNIX sockets on iOS
temporaryDirectoryPath is too long on the simulator. (user: js, size: 2406) [annotate] [blame] [check-ins using]
To Artifact [26b71a4581]:
- File tests/OFUNIXDatagramSocketTests.m — part of check-in [fac49a6297] at 2022-06-13 21:57:24 on branch trunk — Fix UNIX socket tests on iOS (user: js, size: 2435) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
46 47 48 49 50 51 52 | #endif TEST(@"+[socket]", (sock = [OFUNIXDatagramSocket socket])) @try { TEST(@"-[bindToPath:]", R(address1 = [sock bindToPath: path])) } @catch (OFBindFailedException *e) { | > | > | > | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | #endif TEST(@"+[socket]", (sock = [OFUNIXDatagramSocket socket])) @try { TEST(@"-[bindToPath:]", R(address1 = [sock bindToPath: path])) } @catch (OFBindFailedException *e) { switch (e.errNo) { case EAFNOSUPPORT: case EPERM: [OFStdOut setForegroundColor: [OFColor lime]]; [OFStdOut writeLine: @"\r[OFUNIXDatagramSocket] -[bindToPath:]: " @"UNIX datagram sockets unsupported, skipping " @"tests"]; objc_autoreleasePoolPop(pool); return; default: @throw e; } } @try { TEST(@"-[sendBuffer:length:receiver:]", R([sock sendBuffer: "Hello" length: 5 receiver: &address1])) TEST(@"-[receiveIntoBuffer:length:sender:]", |
︙ | ︙ |