summaryrefslogtreecommitdiff
path: root/dbtests/socktests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dbtests/socktests.cpp')
-rw-r--r--dbtests/socktests.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/dbtests/socktests.cpp b/dbtests/socktests.cpp
index 267b1d6..5cd42f5 100644
--- a/dbtests/socktests.cpp
+++ b/dbtests/socktests.cpp
@@ -19,7 +19,6 @@
#include "pch.h"
#include "../util/sock.h"
-
#include "dbtests.h"
namespace SockTests {
@@ -30,16 +29,20 @@ namespace SockTests {
ASSERT_EQUALS( "127.0.0.1", hostbyname( "localhost" ) );
ASSERT_EQUALS( "127.0.0.1", hostbyname( "127.0.0.1" ) );
// ASSERT_EQUALS( "::1", hostbyname( "::1" ) ); // IPv6 disabled at runtime by default.
+
+ HostAndPort h("asdfasdfasdf_no_such_host");
+ // this fails uncomment when fixed.
+ ASSERT( !h.isSelf() );
}
};
-
+
class All : public Suite {
public:
- All() : Suite( "sock" ){}
- void setupTests(){
+ All() : Suite( "sock" ) {}
+ void setupTests() {
add< HostByName >();
}
} myall;
-
+
} // namespace SockTests