test_qmljscompletion always aborts on my system but not on the CI for months now
The backtrace:test_qmljscompletion-20221214-170825.kcrash
The crashing test's output:
Test #92: test_qmljscompletion .............Subprocess aborted***Exception: 141.85 sec
********* Start testing of QmlJS::QmlCompletionTest *********
Config: Using QtTest library 5.15.7, Qt 5.15.7 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 12.2.0), manjaro unknown
QWARN : QmlJS::QmlCompletionTest::initTestCase() kdevplatform.serialization: "The data-repository at /home/igor/.qttest/cache/kdevduchain/test_qmljscompletion-{c9e69eca-21ce-453e-984b-f596a514765b} has to be cleared."
PASS : QmlJS::QmlCompletionTest::initTestCase()
QWARN : QmlJS::QmlCompletionTest::testContainsDeclaration(js_outside_single_line_comment) file contents are: "var a // this is a comment;\n"
QFATAL : QmlJS::QmlCompletionTest::testContainsDeclaration(js_outside_single_line_comment) ASSERT failure in {anonymous}::CompletionParameters {anonymous}::prepareCompletion(const QString&, const QString&, bool): "Failed to parse initCode.", file /home/Fast_storage/kdevelop/plugins/qmljs/codecompletion/tests/test_qmljscompletion.cpp, line 88
FAIL! : QmlJS::QmlCompletionTest::testContainsDeclaration(js_outside_single_line_comment) Received a fatal error.
Loc: [Unknown file(0)]
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 1063ms
********* Finished testing of QmlJS::QmlCompletionTest *********
Removing all config/data/cache files of test_qmljscompletion doesn't get rid of the crash.
@mwolff, does the test crash on your system too?
Edited by Igor Kushnir