tests: virtimetest: Skip more tests near year's end
All of these are affected by the same issue as the ones that we're already skipping during this specific time interval. Suggested-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
4e0acd34c9
commit
9be0889234
@ -177,26 +177,6 @@ mymain(void)
|
|||||||
TEST_LOCALOFFSET("VIR-00:30", 30 * 60);
|
TEST_LOCALOFFSET("VIR-00:30", 30 * 60);
|
||||||
TEST_LOCALOFFSET("VIR-01:30", 90 * 60);
|
TEST_LOCALOFFSET("VIR-01:30", 90 * 60);
|
||||||
|
|
||||||
/* test DST processing with timezones that always
|
|
||||||
* have DST in effect; what's more, cover a zone with
|
|
||||||
* with an unusual DST different than a usual one hour
|
|
||||||
*
|
|
||||||
* These tests originally used '0' as the first day,
|
|
||||||
* but changed to '1' due to GLib GTimeZone parsing bug:
|
|
||||||
* https://gitlab.gnome.org/GNOME/glib/issues/1999
|
|
||||||
*
|
|
||||||
* Once we depend on a new enough GLib, we can put then
|
|
||||||
* back to 0 again.
|
|
||||||
*/
|
|
||||||
TEST_LOCALOFFSET("VIR-00:30VID,1/00:00:00,364/23:59:59",
|
|
||||||
((1 * 60) + 30) * 60);
|
|
||||||
TEST_LOCALOFFSET("VIR-02:30VID,1/00:00:00,364/23:59:59",
|
|
||||||
((3 * 60) + 30) * 60);
|
|
||||||
TEST_LOCALOFFSET("VIR-02:30VID-04:30,1/00:00:00,364/23:59:59",
|
|
||||||
((4 * 60) + 30) * 60);
|
|
||||||
TEST_LOCALOFFSET("VIR-12:00VID-13:00,1/00:00:00,364/23:59:59",
|
|
||||||
((13 * 60) + 0) * 60);
|
|
||||||
|
|
||||||
/* experiments have shown that the following tests will fail
|
/* experiments have shown that the following tests will fail
|
||||||
* during certain hours of Dec 31 or Jan 1 (depending on the
|
* during certain hours of Dec 31 or Jan 1 (depending on the
|
||||||
* TZ setting in the shell running the test, but in general
|
* TZ setting in the shell running the test, but in general
|
||||||
@ -209,6 +189,25 @@ mymain(void)
|
|||||||
* tests, except on Dec 31 and Jan 1.
|
* tests, except on Dec 31 and Jan 1.
|
||||||
*/
|
*/
|
||||||
if (!isNearYearEnd()) {
|
if (!isNearYearEnd()) {
|
||||||
|
/* test DST processing with timezones that always
|
||||||
|
* have DST in effect; what's more, cover a zone with
|
||||||
|
* with an unusual DST different than a usual one hour
|
||||||
|
*
|
||||||
|
* These tests originally used '0' as the first day,
|
||||||
|
* but changed to '1' due to GLib GTimeZone parsing bug:
|
||||||
|
* https://gitlab.gnome.org/GNOME/glib/issues/1999
|
||||||
|
*
|
||||||
|
* Once we depend on a new enough GLib, we can put then
|
||||||
|
* back to 0 again.
|
||||||
|
*/
|
||||||
|
TEST_LOCALOFFSET("VIR-00:30VID,1/00:00:00,364/23:59:59",
|
||||||
|
((1 * 60) + 30) * 60);
|
||||||
|
TEST_LOCALOFFSET("VIR-02:30VID,1/00:00:00,364/23:59:59",
|
||||||
|
((3 * 60) + 30) * 60);
|
||||||
|
TEST_LOCALOFFSET("VIR-02:30VID-04:30,1/00:00:00,364/23:59:59",
|
||||||
|
((4 * 60) + 30) * 60);
|
||||||
|
TEST_LOCALOFFSET("VIR-12:00VID-13:00,1/00:00:00,364/23:59:59",
|
||||||
|
((13 * 60) + 0) * 60);
|
||||||
TEST_LOCALOFFSET("VIR02:45VID00:45,1/00:00:00,364/23:59:59",
|
TEST_LOCALOFFSET("VIR02:45VID00:45,1/00:00:00,364/23:59:59",
|
||||||
-45 * 60);
|
-45 * 60);
|
||||||
TEST_LOCALOFFSET("VIR05:00VID04:00,1/00:00:00,364/23:59:59",
|
TEST_LOCALOFFSET("VIR05:00VID04:00,1/00:00:00,364/23:59:59",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user