mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 19:49:36 +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
|
||||
{
|
||||
Protocol proto = new Protocol;
|
||||
version (Windows)
|
||||
{
|
||||
// These fail, don't know why
|
||||
pragma(msg, " --- std.socket(" ~ __LINE__.stringof ~ ") broken test ---");
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(proto.getProtocolByType(ProtocolType.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");
|
||||
}
|
||||
assert(proto.getProtocolByType(ProtocolType.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