Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
21dd2122
Commit
21dd2122
authored
Nov 30, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn off Windows Error Reporting for unit tests
This keeps TeamCity from hanging on a dialog box
parent
c9274137
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
main.cc
src/main.cc
+9
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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