Differences From Artifact [40030e8cdb]:
- File
tests/OFUNIXStreamSocketTests.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: 2510) [annotate] [blame] [check-ins using]
To Artifact [5aa361cd34]:
- File tests/OFUNIXStreamSocketTests.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: 2539) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
46 47 48 49 50 51 52 | TEST(@"+[socket]", (sockClient = [OFUNIXStreamSocket socket]) && (sockServer = [OFUNIXStreamSocket socket])) @try { TEST(@"-[bindToPath:]", R([sockServer 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 | TEST(@"+[socket]", (sockClient = [OFUNIXStreamSocket socket]) && (sockServer = [OFUNIXStreamSocket socket])) @try { TEST(@"-[bindToPath:]", R([sockServer bindToPath: path])) } @catch (OFBindFailedException *e) { switch (e.errNo) { case EAFNOSUPPORT: case EPERM: [OFStdOut setForegroundColor: [OFColor lime]]; [OFStdOut writeLine: @"\r[OFUNIXStreamSocket] -[bindToPath:]: " @"UNIX stream sockets unsupported, skipping tests"]; objc_autoreleasePoolPop(pool); return; default: @throw e; } } @try { TEST(@"-[listen]", R([sockServer listen])) TEST(@"-[connectToPath:]", R([sockClient connectToPath: path])) |
︙ | ︙ |