tst_qmakelib: Account for test directory with spaces in system() test
Change-Id: Icb695fe40de9d72524c191c0d593c8f2ab746790 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit da3997af0d87aa8ebe25a195c08130f69c6b19e5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c6a2d3155c
commit
079b8b16d2
@ -2463,10 +2463,10 @@ void tst_qmakelib::addTestFunctions(const QString &qindir)
|
|||||||
#else
|
#else
|
||||||
"pwd"
|
"pwd"
|
||||||
#endif
|
#endif
|
||||||
"> '" + QMakeEvaluator::quoteValue(ProString(QDir::toNativeSeparators(
|
"> " + QMakeEvaluator::quoteValue(ProString(QDir::toNativeSeparators(
|
||||||
m_outdir + "/system_out.txt"))) + "): OK = 1\n"
|
m_outdir + "/system_out.txt"))) + "'): OK = 1\n"
|
||||||
"DIR = $$cat(" + QMakeEvaluator::quoteValue(ProString(
|
"DIR = $$quote($$cat(" + QMakeEvaluator::quoteValue(ProString(
|
||||||
m_outdir + "/system_out.txt")) + ")"
|
m_outdir + "/system_out.txt")) + "))"
|
||||||
<< "OK = 1\nDIR = " + QMakeEvaluator::quoteValue(ProString(QDir::toNativeSeparators(m_indir)))
|
<< "OK = 1\nDIR = " + QMakeEvaluator::quoteValue(ProString(QDir::toNativeSeparators(m_indir)))
|
||||||
<< ""
|
<< ""
|
||||||
<< true;
|
<< true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user