diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2019-08-26 12:41:19 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-08-26 11:30:46 +0000 |
commit | 817a292690ccdea7bae185319beb22ea653db946 (patch) | |
tree | 609fbf3d6781c60c6d00f77f6965a3410e4a4012 /tests/auto/blackbox/tst_blackbox.cpp | |
parent | 94a097d95e9bfe485cebd7a5a9acd56301c54f04 (diff) |
Process Command: Do not needlessly interpret output as text
... when redirecting process output. Only do that if there is an output
filter function. Otherwise, we break redirection of binary data.
Fixes: QBS-1488
Change-Id: Ic5a1d2653fa8fc9c4f0eb5d31b7315d7aba3e030
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/tst_blackbox.cpp')
-rw-r--r-- | tests/auto/blackbox/tst_blackbox.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp index f87889155..19676d050 100644 --- a/tests/auto/blackbox/tst_blackbox.cpp +++ b/tests/auto/blackbox/tst_blackbox.cpp @@ -6263,6 +6263,14 @@ void TestBlackbox::outputArtifactAutoTagging() QVERIFY(regularFileExists(relativeExecutableFilePath("output-artifact-auto-tagging"))); } +void TestBlackbox::outputRedirection() +{ + QDir::setCurrent(testDataDir + "/output-redirection"); + QCOMPARE(runQbs(), 0); + TEXT_FILE_COMPARE("output.txt", relativeProductBuildDir("the-product") + "/output.txt"); + TEXT_FILE_COMPARE("output.bin", relativeProductBuildDir("the-product") + "/output.bin"); +} + void TestBlackbox::wildCardsAndRules() { QDir::setCurrent(testDataDir + "/wildcards-and-rules"); |