[PATCH] Fix for KConfigBase::readListEntry

Ingo Klöcker kloecker at kde.org
Sun Oct 20 11:59:40 BST 2002


On Sunday 20 October 2002 01:43, Harri Porten wrote:
> On Sat, 19 Oct 2002, Ingo [iso-8859-15] Klöcker wrote:
> > The attached patch fixes this bug. Ok to commit?
>
> If you could also add a test to kdecore/tests/kconfigtest.cpp it will
> last even longer :)

O.k. I added a test (see attachment) but I get this when I run 
kconfigtest:

ingo at erwin:~/cvs/kde/head/compiled/kdelibs/kdecore/tests> ./kconfigtest
Testing readEntry() ..... FAILED
Testing readEntry() 0 ..... FAILED
Testing readEntry() 1 ..... FAILED
Testing readEntry() 2 ..... FAILED
Testing readEntry() 3 ..... FAILED
Testing readEntry() 4 ..... FAILED
Testing readEntry() 5 ..... OK
Testing readEntry() 6 ..... OK
Testing readBoolEntry() 1 ..... FAILED
Testing readBoolEntry() 2 ..... OK
Testing readPointEntry() ..... FAILED
Testing readSizeEntry() ..... FAILED
Testing readRectEntry() ..... FAILED
Testing readDateTimeEntry() ..... FAILED
Testing readListEntry() ..... FAILED

It seems the config file isn't written at all (the three tests that 
succeed do so because of default values). What am I doing wrong?

Regards,
Ingo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_KConfigBase::readListEntry-test.diff
Type: text/x-diff
Size: 1028 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021020/ba3555b4/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021020/ba3555b4/attachment.sig>


More information about the kde-core-devel mailing list