QProcess and Windows runner on GitHub Actions
Unsolved
General and Desktop
-
Hi,
I have some tests that I run using
QProcess
. I basically have something like this:... QProcess process; process.setProcessChannelMode(QProcess::MergedChannels); process.start(someTest, QStringList()); process.waitForFinished(-1); std::cout << qPrintable(process.readAll()) << std::endl; ...
It's all working fine locally using Windows, Linux and macOS. However, I also want to run them using GitHub Actions and although it's fine on Linux and macOS, it's not on Windows. For whatever reason, on the GHA's Windows runner,
QProcess::readAll()
always returns an emptyQByteArray
. I have tried various things (e.g., https://devdreamz.com/question/225292-get-output-in-qt-qprocessstart-and-qprocessreadallstandardoutput), but to no avail.Has someone else experienced the same with
QProcess
and GHA's Windows runner and, more importantly, found a way to get it to work?Cheers, Alan.