summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-11 10:22:19 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-11 10:22:19 +0100
commit64c82dd7bb065aabc39ef38cfd3d3c52788d1dd4 (patch)
tree519b2c5469b1f7b5c3ba450bfa328f884f6d542c /lib
parentc37394c5d4517b36ec1826668f7b7d75e94dc14a (diff)
downloadabrt-64c82dd7bb065aabc39ef38cfd3d3c52788d1dd4.tar.gz
abrt-64c82dd7bb065aabc39ef38cfd3d3c52788d1dd4.tar.xz
abrt-64c82dd7bb065aabc39ef38cfd3d3c52788d1dd4.zip
new test application
Diffstat (limited to 'lib')
-rw-r--r--lib/MiddleWare/test.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/MiddleWare/test.cpp b/lib/MiddleWare/test.cpp
index b75bab94..8424aa99 100644
--- a/lib/MiddleWare/test.cpp
+++ b/lib/MiddleWare/test.cpp
@@ -40,13 +40,17 @@ int main(int argc, char** argv)
char pid[100];
sprintf(pid, "%d", getpid());
- dd.Create(std::string(DEBUG_DUMPS_DIR)+"/"+pid);
- dd.SaveProc(pid);
+ dd.Create(std::string(DEBUG_DUMPS_DIR)+"/"+pid, pid);
dd.SaveText(FILENAME_LANGUAGE, "CCpp");
dd.SaveBinary(FILENAME_BINARYDATA1, "ass0-9as", sizeof("ass0-9as"));
- dd.SaveText(FILENAME_TIME, "1111111111");
- middleWare.SaveDebugDumpToDatabase(std::string(DEBUG_DUMPS_DIR)+"/"+pid);
+ CMiddleWare::crash_info_t info;
+ middleWare.SaveDebugDump(std::string(DEBUG_DUMPS_DIR)+"/"+pid, info);
+
+ std::cout << "Application Crashed! " <<
+ info.m_sPackage << ": " <<
+ info.m_sExecutable << "(" <<
+ info.m_sCount << ")" << std::endl;
}
catch (std::string sError)