forked from qt-creator/qt-creator
LinuxDeviceTester: Avoid non-trivial global variables
Change-Id: I1c3cf646ecbd6619f7c5a6eb117a0aca43d78534 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -49,7 +49,11 @@ public:
|
|||||||
QList<TaskItem> m_extraTests;
|
QList<TaskItem> m_extraTests;
|
||||||
};
|
};
|
||||||
|
|
||||||
const QStringList s_commandsToTest = {"base64",
|
static const char s_echoContents[] = "Hello Remote World!";
|
||||||
|
|
||||||
|
QStringList GenericLinuxDeviceTesterPrivate::commandsToTest() const
|
||||||
|
{
|
||||||
|
static const QStringList s_commandsToTest = {"base64",
|
||||||
"cat",
|
"cat",
|
||||||
"chmod",
|
"chmod",
|
||||||
"cp",
|
"cp",
|
||||||
@@ -78,13 +82,9 @@ const QStringList s_commandsToTest = {"base64",
|
|||||||
"trap",
|
"trap",
|
||||||
"touch",
|
"touch",
|
||||||
"which"};
|
"which"};
|
||||||
// other possible commands (checked for qnx):
|
// other possible commands (checked for qnx):
|
||||||
// "awk", "grep", "netstat", "print", "pidin", "sleep", "uname"
|
// "awk", "grep", "netstat", "print", "pidin", "sleep", "uname"
|
||||||
|
|
||||||
static const char s_echoContents[] = "Hello Remote World!";
|
|
||||||
|
|
||||||
QStringList GenericLinuxDeviceTesterPrivate::commandsToTest() const
|
|
||||||
{
|
|
||||||
QStringList commands = s_commandsToTest + m_extraCommands;
|
QStringList commands = s_commandsToTest + m_extraCommands;
|
||||||
commands.removeDuplicates();
|
commands.removeDuplicates();
|
||||||
Utils::sort(commands);
|
Utils::sort(commands);
|
||||||
|
Reference in New Issue
Block a user