[Kmymoney-devel] Failing test case
aga
agander93 at gmail.com
Tue Oct 4 19:54:10 UTC 2011
On Tue, 4 Oct 2011 20:26:35 +0200
Thomas Baumgart <thb at net-bembel.de> wrote:
> Hi folks,
>
> another system and another test case is failing:
>
> thb at dollo:~/devel/kmymoney4/build>
> kmymoney/plugins/csvimport/symboltest ********* Start testing of
> SymbolTest ********* Config: Using QTest library 4.6.1, Qt 4.6.1
> PASS : SymbolTest::initTestCase()
> QFATAL : SymbolTest::testDefaultConstructor() Received signal 11
> FAIL! : SymbolTest::testDefaultConstructor() Received a fatal error.
> Loc: [Unknown file(0)]
> Totals: 1 passed, 1 failed, 0 skipped
> ********* Finished testing of SymbolTest *********
>
> Here's how this looks like if I run it under gdb control and take a
> bt:
>
> Starting program:
> /home/thb/devel/kmymoney4/build/kmymoney/plugins/csvimport/symboltest
> [Thread debugging using libthread_db enabled]
> ********* Start testing of SymbolTest *********
> Config: Using QTest library 4.6.1, Qt 4.6.1
> PASS : SymbolTest::initTestCase()
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xb7e93cf9 in KLocale::decimalSymbol() const ()
> from /usr/lib/libkdecore.so.5 (gdb) bt
> #0 0xb7e93cf9 in KLocale::decimalSymbol() const ()
> from /usr/lib/libkdecore.so.5
> #1 0x0804b431 in SymbolTest::init (this=0xbfffee30)
> at /home/thb/devel/kmymoney4/kmymoney/plugins/csvimport/symboltest.cpp:38
> #2 0x08049ff6 in SymbolTest::qt_metacall (this=0xbfffee30,
> _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfffe508)
> at
> /home/thb/devel/kmymoney4/build/kmymoney/plugins/csvimport/moc_symboltest.cpp:96
> #3 0xb7c063e5 in QMetaObject::metacall(QObject*, QMetaObject::Call,
> int, void**) () from /usr/lib/libQtCore.so.4
> #4 0xb7c0a11b in QMetaMethod::invoke(QObject*, Qt::ConnectionType,
> QGenericReturnArgument, QGenericArgument, QGenericArgument,
> QGenericArgument, QGenericArgument, QGenericArgument,
> QGenericArgument, QGenericArgument, QGenericArgument,
> QGenericArgument, QGenericArgument) const ()
> from /usr/lib/libQtCore.so.4 #5 0xb7c0a8cf in
> QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType,
> QGenericReturnArgument, QGenericArgument, QGenericArgument,
> QGenericArgument, QGenericArgument, QGenericArgument,
> QGenericArgument, QGenericArgument, QGenericArgument,
> QGenericArgument, QGenericArgument) () from /usr/lib/libQtCore.so.4
> #6 0xb7f98804 in ?? () from /usr/lib/libQtTest.so.4 #7 0xb7f9a012
> in QTest::qExec(QObject*, int, char**) () from /usr/lib/libQtTest.so.4
> #8 0x0804b676 in main (argc=1, argv=0xbfffef04)
> at /home/thb/devel/kmymoney4/kmymoney/plugins/csvimport/symboltest.cpp:26
>
>
> It fails in
>
> void SymbolTest::init()
> {
> m_parse = new Parse;
> m_parse->setDecimalSymbol(0);
> m_localeDecimal = KGlobal::locale()->decimalSymbol();
> m_localeThousands = KGlobal::locale()->thousandsSeparator();
> }
>
> when calling decimalSymbol(). I am not sure if calling KGlobal w/o a
> KApplication environment is a good idea.
>
> This is on the following system:
>
> thb at dollo:~/devel/kmymoney4/build> kde4-config --version
> Qt: 4.6.1
> KDE: 4.3.5 (KDE 4.3.5) "release 2"
> kde4-config: 1.0
Hmmmm... Works for me here.
Start 21: kmymoney-plugin-csvdatetest
21/27 Test #21: kmymoney-plugin-csvdatetest ............... Passed 0.01 sec
Start 22: kmymoney-plugin-parsedatatest
22/27 Test #22: kmymoney-plugin-parsedatatest ............. Passed 0.01 sec
Start 23: kmymoney-plugin-symboltest
23/27 Test #23: kmymoney-plugin-symboltest ................ Passed 0.01 sec
kde4-config --version
Qt: 4.7.2
KDE Development Platform: 4.6.2 (4.6.2)
kde4-config: 1.0
KMM Version 4.6.0-svn1247493
Allan
More information about the KMyMoney-devel
mailing list