diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-10-14 13:50:33 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-10-14 16:31:29 +0200 |
commit | 3343f681c71f821aa9460f184c30e5ecf3781776 (patch) | |
tree | 08a2328b097abf3d396e2ac9e1bde869db21b316 /tests/auto/blackbox/tst_blackbox.h | |
parent | 73cc70aaf47b044688255ba450f41b665679f5a1 (diff) |
introduce TestBlackbox::unifiedLineEndings()
unifiedLineEndings removes all \r characters from a QByteArray and
returns a modified copy. Use this function to unify the output from
QProcess on Windows.
Change-Id: I414230602dea0f12d171620520e72547c2939881
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/blackbox/tst_blackbox.h')
-rw-r--r-- | tests/auto/blackbox/tst_blackbox.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.h b/tests/auto/blackbox/tst_blackbox.h index 7bc711a49..124ed204f 100644 --- a/tests/auto/blackbox/tst_blackbox.h +++ b/tests/auto/blackbox/tst_blackbox.h @@ -87,6 +87,7 @@ protected: void rmDirR(const QString &dir); void touch(const QString &fn); static void waitForNewTimestamp(); + static QByteArray unifiedLineEndings(const QByteArray &ba); public slots: void initTestCase(); |