ObjFW  Check-in [077ec3efdd]

Overview
Comment:Skip OFSCTPSocketTests when running in qemu-user
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 077ec3efddb3681342c2c2160f17a69610192bb1cb4cd89e17b108b742f14f51
User & Date: js on 2024-11-03 01:04:34
Other Links: manifest | tags
Context
2024-11-03
15:46
ObjFWHID: Properly hide private methods check-in: bc3a7747d9 user: js tags: trunk
01:04
Skip OFSCTPSocketTests when running in qemu-user check-in: 077ec3efdd user: js tags: trunk
2024-11-02
23:33
Make sure OF_VISIBILITY_HIDDEN is always defined check-in: fabf1c6984 user: js tags: trunk
Changes

Modified tests/OFSCTPSocketTests.m from [749f241e9f] to [0fc5034587].

49
50
51
52
53
54
55

56
57












58
59
60
61
62
63
64
		default:
			@throw e;
		}
	}

	[server listen];


	[client connectToHost: @"127.0.0.1"
			 port: OFSocketAddressIPPort(&address)];













	accepted = [server accept];
	OTAssertEqualObjects(OFSocketAddressString(accepted.remoteAddress),
	    @"127.0.0.1");

	streamID = [OFNumber numberWithUnsignedShort: 1];
	PPID = [OFNumber numberWithUnsignedLong: 1234];







>
|
|
>
>
>
>
>
>
>
>
>
>
>
>







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
74
75
76
77
		default:
			@throw e;
		}
	}

	[server listen];

	@try {
		[client connectToHost: @"127.0.0.1"
				 port: OFSocketAddressIPPort(&address)];
	} @catch (OFConnectSocketFailedException *e) {
		switch (e.errNo) {
		case ENOPROTOOPT:
			/*
			 * When running in qemu-user, binding works but
			 * connecting fails?!
			 */
			OTSkip(@"SCTP unsupported");
		default:
			@throw e;
		}
	}

	accepted = [server accept];
	OTAssertEqualObjects(OFSocketAddressString(accepted.remoteAddress),
	    @"127.0.0.1");

	streamID = [OFNumber numberWithUnsignedShort: 1];
	PPID = [OFNumber numberWithUnsignedLong: 1234];