summaryrefslogtreecommitdiff
path: root/libdbpp/testCore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/testCore.cpp')
-rw-r--r--libdbpp/testCore.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libdbpp/testCore.cpp b/libdbpp/testCore.cpp
index db18316..d29480b 100644
--- a/libdbpp/testCore.cpp
+++ b/libdbpp/testCore.cpp
@@ -3,13 +3,19 @@
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/test/test_tools.hpp>
#include <compileTimeFormatter.h>
+#include <fileUtils.h>
namespace DB {
TestCore::TestCore() :
testString("Some C String"),
testDateTime(boost::posix_time::from_time_t(1430530593)),
- testInterval(boost::posix_time::time_duration(1, 2, 3))
+ testInterval(boost::posix_time::time_duration(1, 2, 3)),
+ testBlobData([](){
+ AdHoc::FileUtils::MemMap f("/proc/self/exe");
+ return std::vector<unsigned char>(f.sv<unsigned char>().begin(), f.sv<unsigned char>().end());
+ }()),
+ testBlob(testBlobData)
{
}