summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2016-06-10 09:03:30 -0400
committerKurt Hindenburg <[email protected]>2016-06-10 09:03:30 -0400
commit595adcd7e95ac050a4346b526164f791050691a7 (patch)
treecb072230115a6507aef1b709a67fbff8f2c54858
parentefca9088a3e774d952b1ea74f1a78a88191ff8f3 (diff)
Add a test for Bug 361835 - it currently fails
-rw-r--r--src/autotests/ShellCommandTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/autotests/ShellCommandTest.cpp b/src/autotests/ShellCommandTest.cpp
index 0df4e49..aee8518 100644
--- a/src/autotests/ShellCommandTest.cpp
+++ b/src/autotests/ShellCommandTest.cpp
@@ -74,6 +74,13 @@ void ShellCommandTest::testExpandEnvironmentVariable()
const QString result2 = ShellCommand::expand(text);
const QString expected2 = text.replace('$' + env, value);
QCOMPARE(result2, expected2);
+
+ text = QStringLiteral("$ABC \"$ABC\"");
+ qputenv("ABC", "123");
+ const QString result3 = ShellCommand::expand(text);
+ const QString expected3 = QStringLiteral("123 \"$ABC\"");
+ QEXPECT_FAIL("", "Bug 361835", Continue);
+ QCOMPARE(result3, expected3);
}
void ShellCommandTest::testValidEnvCharacter()