Skip to content
Permalink
Browse files

Only do the IPv6 unit test if IPv6 is enabled

  • Loading branch information...
nerzhul committed Feb 15, 2015
1 parent 5eb0eda commit 3b6b9435c5692eb56838867e184e59dbe4f6b5c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/test.cpp
@@ -1673,7 +1673,7 @@ struct TestSocket: public TestBase
Address address6((IPv6AddressBytes*) NULL, port);

// IPv6 socket test
{
if (g_settings->getBool("enable_ipv6")) {

This comment has been minimized.

Copy link
@Zeno-

Zeno- Feb 16, 2015

Contributor

This was my original solution to this long-standing issue. The "problem" I had with it is that it introduces a dependence in the unit tests (that settings are functional, and have also (possibly) been initialised and/or read). I didn't particularly like this.

Anyway since my personal opinion //now// is that test.cpp|h needs some work I have no particular problem with this fix any more.

UDPSocket socket6;

if (!socket6.init(true, true)) {

0 comments on commit 3b6b943

Please sign in to comment.
You can’t perform that action at this time.