From: bert hubert Date: Mon, 16 Feb 2015 07:44:47 +0000 (+0100) Subject: we used to rely on SRCDIR environment variable being set, now assume . if unset X-Git-Tag: dnsdist-1.0.0-alpha1~299 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d73f0ab738dd1037311ae0f2ed1c4c0d3792061;p=pdns we used to rely on SRCDIR environment variable being set, now assume . if unset --- diff --git a/pdns/test-zoneparser_tng_cc.cc b/pdns/test-zoneparser_tng_cc.cc index 270c7fd87..0be7e4922 100644 --- a/pdns/test-zoneparser_tng_cc.cc +++ b/pdns/test-zoneparser_tng_cc.cc @@ -20,7 +20,10 @@ BOOST_AUTO_TEST_CASE(test_tng_record_types) { reportFancyTypes(); std::ostringstream pathbuf; - pathbuf << std::getenv("SRCDIR") << "/../regression-tests/zones/unit.test"; + const char* p = std::getenv("SRCDIR"); + if(!p) + p = "."; + pathbuf << p << "/../regression-tests/zones/unit.test"; ZoneParserTNG zp(pathbuf.str(), "unit.test"); DNSResourceRecord rr;