forked from qt-creator/qt-creator
DeviceShell: Fix compile issues
- fix warning deviceshell.cpp:222:59: warning: suggest braces around initialization of subobject - add missing dependency to app_version to tests Change-Id: I6d61f26cbc6f51b28175257ab7d0f4d2b491fecb Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -219,7 +219,7 @@ DeviceShell::RunResult DeviceShell::run(const CommandLine &cmd, const QByteArray
|
|||||||
|
|
||||||
QWaitCondition waiter;
|
QWaitCondition waiter;
|
||||||
const int id = ++m_currentId;
|
const int id = ++m_currentId;
|
||||||
const auto it = m_commandOutput.insert(id, CommandRun{-1, {}, {}, &waiter});
|
const auto it = m_commandOutput.insert(id, CommandRun{{-1, {}, {}}, &waiter});
|
||||||
|
|
||||||
QMetaObject::invokeMethod(m_shellProcess, [this, id, &cmd, &stdInData]() {
|
QMetaObject::invokeMethod(m_shellProcess, [this, id, &cmd, &stdInData]() {
|
||||||
const QString command = QString("%1 \"%2\" %3\n")
|
const QString command = QString("%1 \"%2\" %3\n")
|
||||||
|
@@ -3,6 +3,6 @@ file(RELATIVE_PATH TEST_RELATIVE_LIBEXEC_PATH "/${RELATIVE_TEST_PATH}" "/${IDE_L
|
|||||||
|
|
||||||
add_qtc_test(tst_utils_deviceshell
|
add_qtc_test(tst_utils_deviceshell
|
||||||
DEFINES "TEST_RELATIVE_LIBEXEC_PATH=\"${TEST_RELATIVE_LIBEXEC_PATH}\""
|
DEFINES "TEST_RELATIVE_LIBEXEC_PATH=\"${TEST_RELATIVE_LIBEXEC_PATH}\""
|
||||||
DEPENDS Utils
|
DEPENDS Utils app_version
|
||||||
SOURCES tst_deviceshell.cpp
|
SOURCES tst_deviceshell.cpp
|
||||||
)
|
)
|
||||||
|
@@ -4,7 +4,7 @@ file(RELATIVE_PATH TEST_RELATIVE_LIBEXEC_PATH "/${RELATIVE_TEST_PATH}" "/${IDE_L
|
|||||||
add_qtc_test(tst_manual_deviceshell
|
add_qtc_test(tst_manual_deviceshell
|
||||||
MANUALTEST
|
MANUALTEST
|
||||||
DEFINES "TEST_RELATIVE_LIBEXEC_PATH=\"${TEST_RELATIVE_LIBEXEC_PATH}\""
|
DEFINES "TEST_RELATIVE_LIBEXEC_PATH=\"${TEST_RELATIVE_LIBEXEC_PATH}\""
|
||||||
DEPENDS Utils
|
DEPENDS Utils app_version
|
||||||
SOURCES
|
SOURCES
|
||||||
tst_deviceshell.cpp
|
tst_deviceshell.cpp
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user