#include <boost/algorithm/string/predicate.hpp>
#include <dlfcn.h>
#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
#include "common/debug.h"
#include "include/assert.h"
void TestClassHandler::open_all_classes() {
assert(m_class_handles.empty());
- DIR *dir = ::opendir(".libs");
+ string CEPH_LIB = getenv("CEPH_LIB");
+ DIR *dir = ::opendir(CEPH_LIB.c_str());
if (dir == NULL) {
assert(false);;
}
continue;
}
std::string class_name = name.substr(7, name.size() - 10);
- open_class(class_name, ".libs/" + name);
+ open_class(class_name, CEPH_LIB + "/" + name);
}
closedir(dir);
}