Commit bcde643e authored by Jelte Jansen's avatar Jelte Jansen
Browse files

use PACKAGE_STRING (name + version) from config.h instead of hard-coded value...

use PACKAGE_STRING (name + version) from config.h instead of hard-coded value in CH TXT version.bind replies


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1749 e5f2f494-b856-4b98-b285-d166d9295462
parent e5a343fd
......@@ -94,7 +94,8 @@ StaticDataSrcImpl::StaticDataSrcImpl() :
version = RRsetPtr(new RRset(version_name, RRClass::CH(),
RRType::TXT(), RRTTL(0)));
version->addRdata(generic::TXT("BIND10 0.0.0 (pre-alpha)"));
//version->addRdata(generic::TXT("BIND10-devel" CONFIG_VERSION));
version->addRdata(generic::TXT(PACKAGE_STRING));
version_ns = RRsetPtr(new RRset(version_name, RRClass::CH(),
RRType::NS(), RRTTL(0)));
......
......@@ -18,6 +18,8 @@
#include <string>
#include <vector>
#include "config.h"
#include <gtest/gtest.h>
#include <dns/name.h>
......@@ -49,7 +51,7 @@ protected:
{
// XXX: the following values can change as release/developers change,
// in which case the test code must be updated accordingly.
version_data.push_back("BIND10 0.0.0 (pre-alpha)");
version_data.push_back(PACKAGE_STRING);
// XXX: in addition, the order the following items matter.
authors_data.push_back("Evan Hunt");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment