@@ -66,7 +66,7 @@ class ErrorReporterTest : public CxxTest::TestSuite {
66
66
const std::string appName = " My testing application name" ;
67
67
const Mantid::Types::Core::time_duration upTime (5 , 0 , 7 , 0 );
68
68
const std::string stackTrace = " File \" C :\\ file\\ path\\ file.py\" , line 194, in broken_function" ;
69
- TestableErrorReporter reporter (appName, upTime, " 0" , true , " name" , " email" , " textBox" , stackTrace);
69
+ TestableErrorReporter reporter (appName, upTime, " 0" , true , " name" , " email" , " textBox" , stackTrace, " " );
70
70
const std::string message = reporter.generateErrorMessage ();
71
71
72
72
::Json::Value root;
@@ -102,7 +102,7 @@ class ErrorReporterTest : public CxxTest::TestSuite {
102
102
void test_errorMessageWithShareAndRecoveryFileHash () {
103
103
const std::string name = " My testing application name" ;
104
104
const Mantid::Types::Core::time_duration upTime (5 , 0 , 7 , 0 );
105
- TestableErrorReporter errorService (name, upTime, " 0" , true , " name" , " email" , " textBox" , " stacktrace" );
105
+ TestableErrorReporter errorService (name, upTime, " 0" , true , " name" , " email" , " textBox" , " stacktrace" , " cppTraces " );
106
106
const std::string message = errorService.generateErrorMessage ();
107
107
108
108
::Json::Value root;
@@ -111,7 +111,7 @@ class ErrorReporterTest : public CxxTest::TestSuite {
111
111
const std::vector<std::string> expectedMembers{
112
112
" ParaView" , " application" , " host" , " mantidSha1" , " mantidVersion" , " osArch" ,
113
113
" osName" , " osReadable" , " osVersion" , " uid" , " facility" , " upTime" ,
114
- " exitCode" , " textBox" , " name" , " email" , " stacktrace" };
114
+ " exitCode" , " textBox" , " name" , " email" , " stacktrace" , " cppCompressedTraces " };
115
115
for (auto expectedMember : expectedMembers) {
116
116
TSM_ASSERT (expectedMember + " not found" ,
117
117
std::find (members.begin (), members.end (), expectedMember) != members.end ());
@@ -124,12 +124,13 @@ class ErrorReporterTest : public CxxTest::TestSuite {
124
124
TS_ASSERT_EQUALS (root[" email" ].asString (), " email" );
125
125
TS_ASSERT_EQUALS (root[" textBox" ].asString (), " textBox" );
126
126
TS_ASSERT_EQUALS (root[" stacktrace" ].asString (), " stacktrace" );
127
+ TS_ASSERT_EQUALS (root[" cppCompressedTraces" ].asString (), " cppTraces" );
127
128
}
128
129
129
130
void test_errorMessageWithNoShareAndRecoveryFileHash () {
130
131
const std::string name = " My testing application name" ;
131
132
const Mantid::Types::Core::time_duration upTime (5 , 0 , 7 , 0 );
132
- TestableErrorReporter errorService (name, upTime, " 0" , false , " name" , " email" , " textBox" , " stacktrace" );
133
+ TestableErrorReporter errorService (name, upTime, " 0" , false , " name" , " email" , " textBox" , " stacktrace" , " cppTraces " );
133
134
const std::string message = errorService.generateErrorMessage ();
134
135
135
136
::Json::Value root;
@@ -138,7 +139,8 @@ class ErrorReporterTest : public CxxTest::TestSuite {
138
139
const std::vector<std::string> expectedMembers{
139
140
" ParaView" , " application" , " host" , " mantidSha1" , " mantidVersion" , " osArch" ,
140
141
" osName" , " osReadable" , " osVersion" , " uid" , " facility" , " upTime" ,
141
- " exitCode" , " textBox" , " name" , " email" , " stacktrace" };
142
+ " exitCode" , " textBox" , " name" , " email" , " stacktrace" , " upTime" ,
143
+ " exitCode" , " textBox" , " name" , " email" , " stacktrace" , " cppCompressedTraces" };
142
144
for (auto expectedMember : expectedMembers) {
143
145
TSM_ASSERT (expectedMember + " not found" ,
144
146
std::find (members.begin (), members.end (), expectedMember) != members.end ());
@@ -151,5 +153,6 @@ class ErrorReporterTest : public CxxTest::TestSuite {
151
153
TS_ASSERT_EQUALS (root[" email" ].asString (), " " );
152
154
TS_ASSERT_EQUALS (root[" textBox" ].asString (), " textBox" );
153
155
TS_ASSERT_EQUALS (root[" stacktrace" ].asString (), " " );
156
+ TS_ASSERT_EQUALS (root[" cppCompressedTraces" ].asString (), " " );
154
157
}
155
158
};
0 commit comments