[vlc-commits] [Git][videolan/vlc][master] qt: tests: use VLC_TEST_TIMEOUT as a value in seconds
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Jan 24 08:44:06 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
656c3200 by Steve Lhomme at 2026-01-24T08:30:02+00:00
qt: tests: use VLC_TEST_TIMEOUT as a value in seconds
The CI sets VLC_TEST_TIMEOUT to 60 which is 60s.
But QTEST_FUNCTION_TIMEOUT is a value in milliseconds [^1].
[^1]: https://doc.qt.io/qt-6/qtest-overview.html#increasing-test-function-timeout
- - - - -
1 changed file:
- modules/gui/qt/tests/vlc_stub_modules.cpp
Changes:
=====================================
modules/gui/qt/tests/vlc_stub_modules.cpp
=====================================
@@ -193,10 +193,15 @@ bool VLCTestingEnv::init()
{
//see test/libvlc/test.h
QByteArray alarm_timeout = qgetenv("VLC_TEST_TIMEOUT");
- if (alarm_timeout.isEmpty())
+ bool has_timeout;
+ auto vlc_timeout = alarm_timeout.toLongLong(&has_timeout);
+ if (!has_timeout)
qputenv("QTEST_FUNCTION_TIMEOUT", "5000");
else
+ {
+ alarm_timeout.setNum(vlc_timeout * 1000);
qputenv("QTEST_FUNCTION_TIMEOUT", alarm_timeout);
+ }
setenv("VLC_PLUGIN_PATH", TOP_BUILDDIR"/modules", 1);
setenv("VLC_LIB_PATH", TOP_BUILDDIR"/modules", 1);
@@ -212,5 +217,3 @@ bool VLCTestingEnv::init()
return true;
}
-
-
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/656c3200180003dd3b1bdac21f05317033a44732
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/656c3200180003dd3b1bdac21f05317033a44732
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list