TestDUChain::testImportStructure() randomness
Manuel Breugelmans
mbr.nxi at gmail.com
Thu Jun 5 16:47:13 UTC 2008
I observed odd behaviour for this test command. It would pass when running the
full duchain test case but fail when run in isolation. Whats more, always on
the exact same cycle+sub-cycles. Not sure if this on purpose (to make it a
bit reproducable) but there's no call to srand in there ... debian
randomness ;)
With proper initilization and a slightly higher cycle count (100) this test
starts failing. I couldnt quite figure out why though, might be something
trivial.
Manuel
------------
******** Start testing of TestDUChain *********
Config: Using QTest library 4.4.0-rc1, Qt 4.4.0-rc1
QDEBUG : TestDUChain::initTestCase() <unknown program name>(31497)/
KDevelop::DUChain::addDocumentChain: duchain: adding
document "file:///media/data/kdedev/4.0/kdevelop/languages/cpp/parser/duchain.cpp
0" 0x676530
QDEBUG : TestDUChain::initTestCase() <unknown program name>(31497)/
KDevelop::DUChain::chainForDocument: No chain found for
document "file:///media/data/kdedev/4.0/kdevelop/languages/cpp/parser/duchain.cpp
0"
QDEBUG : TestDUChain::initTestCase() <unknown program name>(31497)/
KDevelop::DUChain::addDocumentChain: new count of real chains: 1
proxy-chains: 0
PASS : TestDUChain::initTestCase()
FAIL! :
TestDUChain::testImportStructure() 'm_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1817)]
FAIL! :
TestDUChain::testImportStructure() 'm_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1817)]
FAIL! :
TestDUChain::testImportStructure() 'm_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1817)]
FAIL! :
TestDUChain::testImportStructure() 'collected.contains(context) || !m_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1822)]
FAIL! :
TestDUChain::testImportStructure() 'collected.contains(context) || !m_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1822)]
FAIL! :
TestDUChain::testImportStructure() 'collected.contains(context) || !m_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1822)]
FAIL! :
TestDUChain::testImportStructure() 'collected.contains(context) || !m_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1822)]
FAIL! :
TestDUChain::testImportStructure() 'collected.contains(context) || !m_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1822)]
FAIL! :
TestDUChain::testImportStructure() 'collected.contains(context) || !m_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1822)]
FAIL! :
TestDUChain::testImportStructure() 'collected.contains(context) || !m_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1822)]
FAIL! :
TestDUChain::testImportStructure() 'm_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1817)]
FAIL! :
TestDUChain::testImportStructure() 'm_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1817)]
FAIL! :
TestDUChain::testImportStructure() 'm_context->imports(context->m_context,
SimpleCursor::invalid())' returned FALSE. ()
Loc:
[/home/nix/KdeDev/kdevelop/languages/cpp/cppduchain/tests/test_duchain.cpp(1817)]
QDEBUG : TestDUChain::testImportStructure() <unknown program name>(31497)/
TestDUChain::testImportStructure: total clock cycles needed for
import-structure test: 372890000
PASS : TestDUChain::cleanupTestCase()
Totals: 2 passed, 13 failed, 0 skipped
********* Finished testing of TestDUChain *********
More information about the KDevelop-devel
mailing list