Skip to content

Commit ae511cb

Browse files
committed
MDEV-9363 - Mroonga tests with datetime field fail on Solaris in buildbot
On Solaris mktime() adds one extra day to tm_mday field and returns appropriate value for dates 1600-01-01 and earlier. That is 1600-01-01 becomes 1600-01-02. Solaris mktime manual excerpts: ... The tm_year member must be for year 1901 or later. Calendar times before 20:45:52 UTC, December 13, 1901 or after 03:14:07 UTC, January 19, 2038 cannot be represented. Port- able applications should not try to create dates before 00:00:00 UTC, January 1, 1970 or after 00:00:00 UTC, January 1, 2038. ... The mktime() function assumes Gregorian dates. Times before the adoption of the Gregorian calendar will not match his- torial records. ... According to manual Mroonga only supports dates and datetimes after 1900: https://mariadb.com/kb/en/mariadb/about-mroonga/ Technically these tests cover unsupported values and should fail on all platforms. Disable tests until the problem is fixed upstream.
1 parent ecb27d2 commit ae511cb

8 files changed

+10
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if (`SELECT @@version_compile_os='solaris10'`) {
2+
skip This test is not for Solaris 10;
3+
}

storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_64bit_before_unix_epoch.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
--source ../../include/mroonga/skip_freebsd.inc
1919
--source ../../include/mroonga/skip_osx.inc
20+
--source ../../include/mroonga/skip_solaris10.inc
2021
--source ../../include/mroonga/have_64bit.inc
2122
--source ../../include/mroonga/have_mroonga.inc
2223

storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_64bit_equal.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
--source ../../include/mroonga/skip_freebsd.inc
2020
--source ../../include/mroonga/skip_osx.inc
21+
--source ../../include/mroonga/skip_solaris10.inc
2122
--source ../../include/mroonga/have_64bit.inc
2223
--source ../../include/mroonga/have_mroonga.inc
2324

storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_order_64bit_asc.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
--source ../../include/mroonga/skip_freebsd.inc
2020
--source ../../include/mroonga/skip_osx.inc
21+
--source ../../include/mroonga/skip_solaris10.inc
2122
--source ../../include/mroonga/have_64bit.inc
2223
--source ../../include/mroonga/have_mroonga.inc
2324

storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_order_64bit_desc.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
--source ../../include/mroonga/skip_freebsd.inc
2020
--source ../../include/mroonga/skip_osx.inc
21+
--source ../../include/mroonga/skip_solaris10.inc
2122
--source ../../include/mroonga/have_64bit.inc
2223
--source ../../include/mroonga/have_mroonga.inc
2324

storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_datetime_index_read.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
--source ../../include/mroonga/have_64bit.inc
2020
--source ../../include/mroonga/skip_freebsd.inc
2121
--source ../../include/mroonga/skip_osx.inc
22+
--source ../../include/mroonga/skip_solaris10.inc
2223
--source ../../include/mroonga/have_mroonga.inc
2324

2425
--disable_warnings

storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_datetime_order_asc.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
--source ../../include/mroonga/skip_freebsd.inc
2020
--source ../../include/mroonga/skip_osx.inc
21+
--source ../../include/mroonga/skip_solaris10.inc
2122
--source ../../include/mroonga/have_64bit.inc
2223
--source ../../include/mroonga/have_mroonga.inc
2324

storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_datetime_order_desc.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
--source ../../include/mroonga/skip_freebsd.inc
2020
--source ../../include/mroonga/skip_osx.inc
21+
--source ../../include/mroonga/skip_solaris10.inc
2122
--source ../../include/mroonga/have_64bit.inc
2223
--source ../../include/mroonga/have_mroonga.inc
2324

0 commit comments

Comments
 (0)