From a1e49aa8f23cd853a7102e3cf893baaa321c6ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 1 Jan 2023 11:44:04 +0100 Subject: [PATCH] package/ci: add a CTest timeout on AppVeyor. So assertion dialog boxes don't wait forever for someone to click the mouse, sigh. --- package/ci/appveyor-desktop-gles.bat | 7 ++++++- package/ci/appveyor-desktop.bat | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/package/ci/appveyor-desktop-gles.bat b/package/ci/appveyor-desktop-gles.bat index 654f5f1..1df4ee0 100644 --- a/package/ci/appveyor-desktop-gles.bat +++ b/package/ci/appveyor-desktop-gles.bat @@ -102,7 +102,12 @@ cmake --build . --target install || exit /b rem Test set CORRADE_TEST_COLOR=ON -ctest -V -E GLTest || exit /b +rem On Windows, if an assertion or other issue happens, A DIALOG WINDOWS POPS +rem UP FROM THE CONSOLE. And then, for fucks sake, IT WAITS ENDLESSLY FOR YOU +rem TO CLOSE IT!! Such behavior is utterly stupid in a non-interactive setting +rem such as on this very CI, so I'm setting a timeout to 60 seconds to avoid +rem the CI job being stuck for an hour if an assertion happens. CTest's default rem timeouts is somehow 10M seconds, which is as useful as nothing at all. +ctest -V -E GLTest --timeout 60 || exit /b rem Verify the setuptools install cd src/python || exit /b diff --git a/package/ci/appveyor-desktop.bat b/package/ci/appveyor-desktop.bat index c3c9423..81eaf49 100644 --- a/package/ci/appveyor-desktop.bat +++ b/package/ci/appveyor-desktop.bat @@ -110,7 +110,12 @@ cmake --build . --target install || exit /b rem Test set CORRADE_TEST_COLOR=ON -ctest -V -E GLTest || exit /b +rem On Windows, if an assertion or other issue happens, A DIALOG WINDOWS POPS +rem UP FROM THE CONSOLE. And then, for fucks sake, IT WAITS ENDLESSLY FOR YOU +rem TO CLOSE IT!! Such behavior is utterly stupid in a non-interactive setting +rem such as on this very CI, so I'm setting a timeout to 60 seconds to avoid +rem the CI job being stuck for an hour if an assertion happens. CTest's default rem timeouts is somehow 10M seconds, which is as useful as nothing at all. +ctest -V -E GLTest --timeout 60 || exit /b rem Verify the setuptools install cd src/python || exit /b