Commit cb57b800 authored by Don Gagne's avatar Don Gagne

No port tests while unit testing

parent 246d48f7
......@@ -196,6 +196,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
#ifdef Q_OS_LINUX
#ifndef __mobile__
if (!_runningUnitTests) {
if (getuid() == 0) {
QMessageBox msgBox;
msgBox.setInformativeText("You are runnning QGroundControl as root. "
......@@ -230,6 +231,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
}
permFile.close();
}
}
#endif
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment