mirror of
https://github.com/dlang/phobos.git
synced 2025-05-08 03:56:54 +03:00
std.socket: re-enabled Windows getProtocolByType test (works for me)
This commit is contained in:
parent
9b5aa12891
commit
956decdba7
1 changed files with 8 additions and 16 deletions
24
std/socket.d
24
std/socket.d
|
@ -373,22 +373,14 @@ class Protocol
|
||||||
unittest
|
unittest
|
||||||
{
|
{
|
||||||
Protocol proto = new Protocol;
|
Protocol proto = new Protocol;
|
||||||
version (Windows)
|
assert(proto.getProtocolByType(ProtocolType.TCP));
|
||||||
{
|
//printf("About protocol TCP:\n\tName: %.*s\n", proto.name);
|
||||||
// These fail, don't know why
|
// foreach(string s; proto.aliases)
|
||||||
pragma(msg, " --- std.socket(" ~ __LINE__.stringof ~ ") broken test ---");
|
// {
|
||||||
}
|
// printf("\tAlias: %.*s\n", s);
|
||||||
else
|
// }
|
||||||
{
|
assert(proto.name == "tcp");
|
||||||
assert(proto.getProtocolByType(ProtocolType.TCP));
|
assert(proto.aliases.length == 1 && proto.aliases[0] == "TCP");
|
||||||
//printf("About protocol TCP:\n\tName: %.*s\n", proto.name);
|
|
||||||
// foreach(string s; proto.aliases)
|
|
||||||
// {
|
|
||||||
// printf("\tAlias: %.*s\n", s);
|
|
||||||
// }
|
|
||||||
assert(proto.name == "tcp");
|
|
||||||
assert(proto.aliases.length == 1 && proto.aliases[0] == "TCP");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue