Commit ae5bdc2e authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

minor krazy fix

parent 48df0e0a
...@@ -65,7 +65,7 @@ void ShellCommandTest::testExpandEnvironmentVariable() ...@@ -65,7 +65,7 @@ void ShellCommandTest::testExpandEnvironmentVariable()
const QString value = "/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin"; const QString value = "/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin";
qputenv(env.toLocal8Bit(), value.toLocal8Bit()); qputenv(env.toLocal8Bit(), value.toLocal8Bit());
const QString result = ShellCommand::expand(text); const QString result = ShellCommand::expand(text);
const QString expected = text.replace("$" + env, value); const QString expected = text.replace('$' + env, value);
QCOMPARE(result, expected); QCOMPARE(result, expected);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment