summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-11 16:17:04 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-11 16:17:04 +0100
commitf3ce5e7a7082e430c8ac1193b5c8c4335d1cd4a2 (patch)
tree105b2524a2bb1cb1152865a8d4f79089a55ad98e /lib
parentd0c57dbf8c5289b957be08f7c58fa936ead643aa (diff)
downloadabrt-f3ce5e7a7082e430c8ac1193b5c8c4335d1cd4a2.tar.gz
abrt-f3ce5e7a7082e430c8ac1193b5c8c4335d1cd4a2.tar.xz
abrt-f3ce5e7a7082e430c8ac1193b5c8c4335d1cd4a2.zip
added test for reporting stuff
Diffstat (limited to 'lib')
-rw-r--r--lib/MiddleWare/test.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/MiddleWare/test.cpp b/lib/MiddleWare/test.cpp
index 8424aa99..016dd9d1 100644
--- a/lib/MiddleWare/test.cpp
+++ b/lib/MiddleWare/test.cpp
@@ -45,13 +45,15 @@ int main(int argc, char** argv)
dd.SaveBinary(FILENAME_BINARYDATA1, "ass0-9as", sizeof("ass0-9as"));
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;
+ if (middleWare.SaveDebugDump(std::string(DEBUG_DUMPS_DIR)+"/"+pid, info))
+ {
+ std::cout << "Application Crashed! " <<
+ "(" << info.m_sTime << " [" << info.m_sCount << "]) " <<
+ info.m_sPackage << ": " <<
+ info.m_sExecutable << std::endl;
+ middleWare.Report(info.m_sUUID, info.m_sUID);
+ }
}
catch (std::string sError)
{