GNOME Bugzilla – Bug 761472
common: tests timeout is different on top-level make check
Last modified: 2016-02-05 23:53:25 UTC
The timeout on the top-level make check run is different than when you run element.check. This causes some tests to fail on the top-level while they work when run separately. CK_DEFAULT_TIMEOUT is only being set for the tests/check subdir makefile
Created attachment 320291 [details] [review] check.mak: set CK_DEFAULT_TIMEOUT for all tests Set it as part of the AM_TESTS_ENVIRONMENT variable so that it is the same when running make-check from the top-level dir or when running the element.check variations
Created attachment 320292 [details] [review] tests: avoid overwriting AM_TESTS_ENVIRONMENT from common/check.mak So that CK_DEFAULT_TIMEOUT is properly set for all tests
I'm not sure if there a saner way to have a default, the same patch might have to be replicated for the other modules.
Is 'check-valgrind' also affected then, which has a longer timeout?
No. For some reason it already uses the correct 360 timeout for valgrind tests. It is defined as: check-valgrind: $(MAKE) -C tests/check check-valgrind
I'd say let's get this in then. We could just use the default for CK_TIMEOUT which is 30 seconds IIRC. Which seems just as reasonable as 20 really.
commit 33f8051a3a5fee6ea5e63f22be3034a81e295038 Author: Thiago Santos <thiagoss@osg.samsung.com> Date: Tue Feb 2 17:12:18 2016 -0300 check.mak: set CK_DEFAULT_TIMEOUT for all tests Set it as part of the AM_TESTS_ENVIRONMENT variable so that it is the same when running make-check from the top-level dir or when running the element.check variations https://bugzilla.gnome.org/show_bug.cgi?id=761472 Also updated all modules to extend AM_TESTS_ENVIRONMENT in their makefiles
core: 682516402d2e2179238ee8e388ac7a304286c1c8 base: 681b2b8d81d9584ff8f45f48916a8601afd46580 good: 522de42381cd6c68417b41e41610c78e4f71e1e6 bad: 669b360ff7ab03963105564e8b011b322b2ac175 ugly: 7e2f2f9e5b0b0da16fad50f23d184a273d025386 ges: c0dbfeb433a1f328885ebeff9a84d79399a9067e rtsp-server: 332846173848205a2c0ea72e40f060477dade8d2