From 679a7ba7ef2e7213b40d926c2bb99de96403f730 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Fri, 1 Apr 2022 08:48:00 +0200 Subject: [PATCH] tst_QtcProcess: Rename ProcessChannelForwarding into ChannelForwarding Amends 91c11c769f49dd563feb600be5c64eed7102a02b Change-Id: Ib38edca1f720a313c42ee6224cbd9109fb50fa84 Reviewed-by: Reviewed-by: Alessandro Portale --- tests/auto/utils/qtcprocess/tst_qtcprocess.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp b/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp index 8acff80ca6b..87efd924e47 100644 --- a/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp +++ b/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp @@ -249,7 +249,7 @@ private: SUB_CREATOR_PROCESS(ExitCode); SUB_CREATOR_PROCESS(RunBlockingStdOut); SUB_CREATOR_PROCESS(LineCallback); - SUB_CREATOR_PROCESS(ProcessChannelForwarding); + SUB_CREATOR_PROCESS(ChannelForwarding); SUB_CREATOR_PROCESS(StandardOutputAndErrorWriter); SUB_CREATOR_PROCESS(KillBlockingProcess); SUB_CREATOR_PROCESS(EmitOneErrorOnCrash); @@ -1180,12 +1180,12 @@ void tst_QtcProcess::notRunningAfterStartingNonExistingProgram() // a process and start it, because in this case there is no way on how to check whether something // went into our output channels or not. -// So we start two processes in chain instead. On the beginning the processChannelForwarding() -// test starts the ProcessChannelForwarding::main() - this one will start another process +// So we start two processes in chain instead. On the beginning the channelForwarding() +// test starts the ChannelForwarding::main() - this one will start another process // StandardOutputAndErrorWriter::main() with forwarding options. // The StandardOutputAndErrorWriter::main() is very simple - it just puts something to the output -// and the error channels. Then ProcessChannelForwarding::main() either forwards these channels -// or not - we check it in the outer processChannelForwarding() test. +// and the error channels. Then ChannelForwarding::main() either forwards these channels +// or not - we check it in the outer channelForwarding() test. static const char s_outputData[] = "This is the output message."; static const char s_errorData[] = "This is the error message."; @@ -1197,7 +1197,7 @@ void tst_QtcProcess::StandardOutputAndErrorWriter::main() exit(0); } -void tst_QtcProcess::ProcessChannelForwarding::main() +void tst_QtcProcess::ChannelForwarding::main() { const QProcess::ProcessChannelMode channelMode = QProcess::ProcessChannelMode(qEnvironmentVariableIntValue(envVar())); @@ -1232,7 +1232,7 @@ void tst_QtcProcess::channelForwarding() QFETCH(bool, outputForwarded); QFETCH(bool, errorForwarded); - SubCreatorConfig subConfig(ProcessChannelForwarding::envVar(), QString::number(int(channelMode))); + SubCreatorConfig subConfig(ChannelForwarding::envVar(), QString::number(int(channelMode))); TestProcess process; subConfig.setupSubProcess(&process);