Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
21dd2122
Commit
21dd2122
authored
Nov 30, 2014
by
Don Gagne
Browse files
Turn off Windows Error Reporting for unit tests
This keeps TeamCity from hanging on a dialog box
parent
c9274137
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cc
View file @
21dd2122
...
...
@@ -125,7 +125,16 @@ int main(int argc, char *argv[])
_CrtSetReportHook
(
WindowsCrtReportHook
);
#endif
}
#ifdef Q_OS_WIN
if
(
runUnitTests
)
{
// Don't pop up Windows Error Reporting dialog when app crashes. This prevents TeamCity from
// hanging.
DWORD
dwMode
=
SetErrorMode
(
SEM_NOGPFAULTERRORBOX
);
SetErrorMode
(
dwMode
|
SEM_NOGPFAULTERRORBOX
);
}
#endif
#endif // QT_DEBUG
QGCApplication
*
app
=
new
QGCApplication
(
argc
,
argv
,
runUnitTests
);
Q_CHECK_PTR
(
app
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment