summaryrefslogtreecommitdiffstats
path: root/lib/MiddleWare/test.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-02-11 10:44:40 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-02-11 10:44:40 +0100
commit356da89a4e2e6e50ceade12f286d104fe1c17eae (patch)
tree1fafbfebd44b937eb63906453a285ad5a4b1558a /lib/MiddleWare/test.cpp
parent3192f468fa5e7f10c664cca671246f962d1d36d1 (diff)
parent08ec10a5f6a2d6159e926cb075ad3eb4964ced50 (diff)
downloadabrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.tar.gz
abrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.tar.xz
abrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.zip
Merge branch 'master' of git://git.fedorahosted.org/git/crash-catcher
Diffstat (limited to 'lib/MiddleWare/test.cpp')
-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 b75bab9..8424aa9 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)