This change is a temporary modification to the SRV unit test so that it
will pass without any special setup. Once a test record is set up for
matahariproject.org, we can change it back.
Signed-off-by: Russell Bryant <russell(a)russellbryant.net>
---
src/tests/mh_hsa_linux.h | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/tests/mh_hsa_linux.h b/src/tests/mh_hsa_linux.h
index 17034f0..007006e 100644
--- a/src/tests/mh_hsa_linux.h
+++ b/src/tests/mh_hsa_linux.h
@@ -46,13 +46,16 @@ class MhHsaSuite : public CxxTest::TestSuite
void testSrvLookup(void)
{
char target[NS_MAXDNAME];
- const char *host = "_matahari._tcp.matahariproject.org";
+ const char *host = "_matahari._tcp.russellbryant.net";
+ //const char *host = "_matahari._tcp.matahariproject.org";
int ret = 0;
ret = mh_srv_lookup(host, target, NS_MAXDNAME);
TS_ASSERT(ret == 0);
- TS_ASSERT((mh_test_is_match("^qpid.*matahariproject\\.org$",
+ TS_ASSERT((mh_test_is_match("^justtesting\\.russellbryant\\.net$",
target)) >= 0);
+ //TS_ASSERT((mh_test_is_match("^qpid.*matahariproject\\.org$",
+ // target)) >= 0);
}
};
--
1.7.5.4