ObjFW  Diff

Differences From Artifact [d6d586374c]:

To Artifact [c4c06acd4d]:


88
89
90
91
92
93
94
95

96
97
98
99
100
101

102
103
104
105
106
107

108
109
110
111
112
113
114
115
116
117
118

	@try {
		TEST(@"-[bindToPort:]",
		    R(address1 = [sockServer bindToPort: 0]))
	} @catch (OFBindFailedException *e) {
		switch (e.errNo) {
		case EAFNOSUPPORT:
			[self outputString: @"[OFSPXStreamSocket] "

					    @"-[bindToPort:]: "
					    @"IPX unsupported, skipping tests\n"
				   inColor: GREEN];
			break;
		case ESOCKTNOSUPPORT:
			[self outputString: @"[OFSPXStreamSocket] "

					    @"-[bindToPort:]: "
					    @"SPX unsupported, skipping tests\n"
				   inColor: GREEN];
			break;
		case EADDRNOTAVAIL:
			[self outputString: @"[OFSPXStreamSocket] "

					    @"-[bindToPort:]: "
					    @"IPX not configured, skipping "
					    @"tests\n"
				   inColor: GREEN];
			break;
		default:
			@throw e;
		}

		objc_autoreleasePoolPop(pool);
		return;







|
>
|
|
<


|
>
|
|
<


|
>
|
|
<
<







88
89
90
91
92
93
94
95
96
97
98

99
100
101
102
103
104

105
106
107
108
109
110


111
112
113
114
115
116
117

	@try {
		TEST(@"-[bindToPort:]",
		    R(address1 = [sockServer bindToPort: 0]))
	} @catch (OFBindFailedException *e) {
		switch (e.errNo) {
		case EAFNOSUPPORT:
			of_stdout.foregroundColor = [OFColor lime];
			[of_stdout writeLine:
			    @"[OFSPXStreamSocket] -[bindToPort:]: "
			    @"IPX unsupported, skipping tests"];

			break;
		case ESOCKTNOSUPPORT:
			of_stdout.foregroundColor = [OFColor lime];
			[of_stdout writeLine:
			    @"[OFSPXStreamSocket] -[bindToPort:]: "
			    @"SPX unsupported, skipping tests"];

			break;
		case EADDRNOTAVAIL:
			of_stdout.foregroundColor = [OFColor lime];
			[of_stdout writeLine:
			    @"[OFSPXStreamSocket] -[bindToPort:]: "
			    @"IPX not configured, skipping tests"];


			break;
		default:
			@throw e;
		}

		objc_autoreleasePoolPop(pool);
		return;