[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [konsole] src/autotests: Correct the test for bug 361835
From: Kurt Hindenburg <kurt.hindenburg () gmail ! com>
Date: 2016-06-11 19:05:20
Message-ID: E1bBoDg-0000yt-HI () scm ! kde ! org
[Download RAW message or body]
Git commit e6e3dfbc8ad47136347359971f22da89e2daa5d7 by Kurt Hindenburg.
Committed on 11/06/2016 at 19:04.
Pushed by hindenburg into branch 'master'.
Correct the test for bug 361835
M +2 -2 src/autotests/ShellCommandTest.cpp
http://commits.kde.org/konsole/e6e3dfbc8ad47136347359971f22da89e2daa5d7
diff --git a/src/autotests/ShellCommandTest.cpp b/src/autotests/ShellCommandTest.cpp
index aee8518..1abf1d4 100644
--- a/src/autotests/ShellCommandTest.cpp
+++ b/src/autotests/ShellCommandTest.cpp
@@ -75,10 +75,10 @@ void ShellCommandTest::testExpandEnvironmentVariable()
const QString expected2 = text.replace('$' + env, value);
QCOMPARE(result2, expected2);
- text = QStringLiteral("$ABC \"$ABC\"");
+ text = QStringLiteral("$ABC \"$ABC\" '$ABC'");
qputenv("ABC", "123");
const QString result3 = ShellCommand::expand(text);
- const QString expected3 = QStringLiteral("123 \"$ABC\"");
+ const QString expected3 = QStringLiteral("123 \"123\" '$ABC'");
QEXPECT_FAIL("", "Bug 361835", Continue);
QCOMPARE(result3, expected3);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic