]> granicus.if.org Git - pdns/commitdiff
we used to rely on SRCDIR environment variable being set, now assume . if unset
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 16 Feb 2015 07:44:47 +0000 (08:44 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 16 Feb 2015 07:44:47 +0000 (08:44 +0100)
pdns/test-zoneparser_tng_cc.cc

index 270c7fd87404743377c8dee97e6e0e14eaf62bb2..0be7e49222619dc9fa967b4602b686cb5e3b4e95 100644 (file)
@@ -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;