Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.10
-
None
Description
Running a unit test ends with error
Error: adb test results tail command timed out.
even if all tests pass.
I configure Qt like this:
..\..\qt6\configure -debug -developer-build -qt-host-path K:\qt\build\dev\qtbase -android-abis arm64-v8a -android-sdk C:\Users\johanseg\AppData\Local\Android\Sdk\ -android-ndk C:\users\johanseg\AppData\Local\Android\Sdk\ndk\26.1.10909125\ -submodules qtbase -make tests -nomake examples -- -DQT_BUILD_TESTS_BY_DEFAULT=OFF && ninja
Then I build
ninja tst_quniquehandle_check
All tests passes, but the testrun fails:
K:\qt\build\android-qtbase>ninja tst_quniquehandle_check [2/2] Running ctest -V -R "^tst_quniquehandle$" FAILED: qtbase/tests/auto/corelib/tools/quniquehandle/CMakeFiles/tst_quniquehandle_check K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle/CMakeFiles/tst_quniquehandle_check C:\Windows\system32\cmd.exe /C "cd /D K:\qt\build\android-qtbase\qtbase\tests\auto\corelib\tools\quniquehandle && "C:\Program Files\CMake\bin\ctest.exe" -V -R "^tst_quniquehandle$"" UpdateCTestConfiguration from :K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle/DartConfiguration.tcl UpdateCTestConfiguration from :K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle/DartConfiguration.tcl Test project K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 1 Start 1: tst_quniquehandle 1: Test command: "C:\Program Files\CMake\bin\cmake.exe" "-P" "K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle/tst_quniquehandleWrapperDebug.cmake" 1: Working Directory: K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle 1: Test timeout computed to be: 10000000 1: ********* Start testing of tst_QUniqueHandle ********* 1: Config: Using QtTest library 6.10.0, Qt 6.10.0 (arm64-little_endian-lp64 shared (dynamic) debug build; by Android (10552028, based on r487747d) Clang 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)), android 13.0 1: PASS : tst_QUniqueHandle::initTestCase() 1: PASS : tst_QUniqueHandle::defaultConstructor_initializesToInvalidHandle() 1: PASS : tst_QUniqueHandle::constructor_initializesToValid_whenCalledWithValidHandle() 1: PASS : tst_QUniqueHandle::copyConstructor_and_assignmentOperator_areDeleted() 1: PASS : tst_QUniqueHandle::moveConstructor_movesOwnershipAndResetsSource() 1: PASS : tst_QUniqueHandle::moveAssignment_movesOwnershipAndResetsSource() 1: PASS : tst_QUniqueHandle::moveAssignment_maintainsOwnershipWhenSelfAssigning() 1: PASS : tst_QUniqueHandle::isValid_returnsFalse_onlyWhenHandleIsInvalid() 1: PASS : tst_QUniqueHandle::destructor_callsClose_whenHandleIsValid() 1: PASS : tst_QUniqueHandle::operatorBool_returnsFalse_onlyWhenHandleIsInvalid() 1: PASS : tst_QUniqueHandle::get_returnsValue() 1: PASS : tst_QUniqueHandle::reset_resetsPreviousValueAndTakesOwnership_whenCalledWithHandle() 1: PASS : tst_QUniqueHandle::reset_resetsOwningHandleToInvalid_whenCalledWithNoArguments() 1: PASS : tst_QUniqueHandle::reset_maintainsOwnership_whenCalledWithOwnedHandle() 1: PASS : tst_QUniqueHandle::reset_doesNothing_whenCalledOnInvalidHandle() 1: PASS : tst_QUniqueHandle::release_returnsInvalidResource_whenCalledOnInvalidHandle() 1: PASS : tst_QUniqueHandle::release_releasesOwnershipAndReturnsResource_whenHandleOwnsObject() 1: PASS : tst_QUniqueHandle::swap_swapsOwnership() 1: PASS : tst_QUniqueHandle::comparison_behavesAsInt_whenHandleTypeIsInt(lhs == rhs) 1: PASS : tst_QUniqueHandle::comparison_behavesAsInt_whenHandleTypeIsInt(lhs < rhs) 1: PASS : tst_QUniqueHandle::comparison_behavesAsInt_whenHandleTypeIsInt(lhs > rhs) 1: PASS : tst_QUniqueHandle::comparison_behavesAsPointer_whenHandleTypeIsPointer(lhs == rhs) 1: PASS : tst_QUniqueHandle::comparison_behavesAsPointer_whenHandleTypeIsPointer(lhs < rhs) 1: PASS : tst_QUniqueHandle::comparison_behavesAsPointer_whenHandleTypeIsPointer(lhs > rhs) 1: PASS : tst_QUniqueHandle::sort_sortsHandles() 1: PASS : tst_QUniqueHandle::addressOf_returnsAddressOfHandle() 1: PASS : tst_QUniqueHandle::cleanupTestCase() 1: Totals: 27 passed, 0 failed, 0 skipped, 0 blacklisted, 20ms 1: ********* Finished testing of tst_QUniqueHandle ********* 1: Error: adb test results tail command timed out. 1: QProcess: Destroyed while process ("C:\\Users\\johanseg\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb") is still running. 1: CMake Error at tst_quniquehandleWrapperDebug.cmake:18 (message): 1: cmd /c call K:/qt/build/dev/qtbase/bin/androidtestrunner --path 1: K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle/android-build 1: --adb C:/Users/johanseg/AppData/Local/Android/Sdk/platform-tools/adb 1: --skip-install-root --make "C:/Program Files/CMake/bin/cmake.exe" --build 1: K:/qt/build/android-qtbase --target tst_quniquehandle_make_apk --apk 1: K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle/android-build/tst_quniquehandle.apk 1: --ndk-stack 1: C:/users/johanseg/AppData/Local/Android/Sdk/ndk/26.1.10909125/ndk-stack 1: --timeout 1425 execution failed with exit code -1. 1: 1: 1/1 Test #1: tst_quniquehandle ................***Failed 39.07 sec 0% tests passed, 1 tests failed out of 1 Label Time Summary: qtbase/tests/auto/corelib/tools/quniquehandle/tst_quniquehandle = 39.07 sec*proc (1 test) Total Test time (real) = 39.08 sec The following tests FAILED: 1 - tst_quniquehandle (Failed) Errors while running CTest Output from these tests are in: K:/qt/build/android-qtbase/qtbase/tests/auto/corelib/tools/quniquehandle/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely. ninja: build stopped: subcommand failed.