[svn] commit: r1722 - /trunk/src/lib/dns/tests/unittest_util.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Apr 16 03:41:47 UTC 2010
Author: jinmei
Date: Fri Apr 16 03:41:47 2010
New Revision: 1722
Log:
corrected test data path handling: it should have checked rbegin(), not rend(), to see if the given path ends with '/'.
I believe this is pretty trivial so I'm committing this to trunk directly. it compiles and passes tests (in fact without this some tests may not pass, depending on environments).
Modified:
trunk/src/lib/dns/tests/unittest_util.cc
Modified: trunk/src/lib/dns/tests/unittest_util.cc
==============================================================================
--- trunk/src/lib/dns/tests/unittest_util.cc (original)
+++ trunk/src/lib/dns/tests/unittest_util.cc Fri Apr 16 03:41:47 2010
@@ -66,7 +66,7 @@
vector<string>::const_iterator it = config.data_paths_.begin();
for (; it != config.data_paths_.end(); ++it) {
string data_path = *it;
- if (data_path.empty() || *data_path.rend() != '/') {
+ if (data_path.empty() || *data_path.rbegin() != '/') {
data_path.push_back('/');
}
ifs.open((data_path + datafile).c_str(), ios_base::in);
More information about the bind10-changes
mailing list