[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/tests
From: David Faure <faure () kde ! org>
Date: 2011-01-13 16:29:46
Message-ID: 20110113162946.CF5B0AC8B3 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1214224 by dfaure:
${HOME} also works in [$e] lines, says the test
M +4 -1 kconfigtest.cpp
--- trunk/KDE/kdelibs/kdecore/tests/kconfigtest.cpp #1214223:1214224
@@ -447,7 +447,8 @@
out << "[Test Group]" << endl
<< "homePath=$HOME/foo" << endl
<< "homePath2=file://$HOME/foo" << endl
- << "URL[$e]=file://$HOME/foo" << endl
+ << "withBraces[$e]=file://${HOME}/foo" << endl
+ << "URL[$e]=file://${HOME}/foo" << endl
<< "hostname[$e]=$(hostname)" << endl;
}
KConfig cf2("pathtest");
@@ -456,6 +457,8 @@
QCOMPARE(group.readPathEntry("homePath", QString()), HOMEPATH);
QVERIFY(group.hasKey("homePath2"));
QCOMPARE(group.readPathEntry("homePath2", QString()), QString("file://") + HOMEPATH );
+ QVERIFY(group.hasKey("withBraces"));
+ QCOMPARE(group.readPathEntry("withBraces", QString()), QString("file://") + HOMEPATH );
QVERIFY(group.hasKey("URL"));
QCOMPARE(group.readEntry("URL", QString()), QString("file://") + HOMEPATH );
#if !defined(Q_OS_WIN32) && !defined(Q_OS_MAC)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic