Skip to content

Commit

Permalink
arr, weight 10 seconds in the app. better for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-ce committed Jan 16, 2024
1 parent 74f31d8 commit 26416ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ jobs:
adb devices
adb install build/unittests/android-build/test_qml_catch2_console.apk
adb shell am start -W -n org.qtproject.example.test_qml_catch2_console/org.qtproject.qt.android.bindings.QtActivity
while [ "$(adb shell dumpsys window windows | grep -i "test_qml_catch2_console" | wc -l | tr -d '[:space:]')" -ne 0 ]; do sleep 5; done && echo "Condition met. Exiting loop."
while [ "$(adb shell dumpsys window windows | grep -i "test_qml_catch2_console" | wc -l | tr -d '[:space:]')" -ne 0 ]; do sleep 2; done && echo "Condition met. Exiting loop."
adb logcat -d -s libtest_qml_catch2_console_x86_64.so
2 changes: 1 addition & 1 deletion src/qml_catch2_console/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int main( int argc, char* argv[] ) {
argv_2.push_back(console_colour_switch.data());
const int argc_2 = argc + 1;
const auto retval = Catch::Session().run(argc_2, argv_2.data());
QTimer::singleShot(1000, [retval]() { QCoreApplication::exit(retval); });
QTimer::singleShot(10000, [retval]() { QCoreApplication::exit(retval); });
});
return app.exec();
}

0 comments on commit 26416ec

Please sign in to comment.