]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Suppress y2038 GSS tests when time_t is 32-bit 666/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 15 Jun 2017 15:59:18 +0000 (11:59 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 19 Jun 2017 15:32:35 +0000 (11:32 -0400)
The GSSAPI time_t tests do not run correctly on 32-bit Solaris because
time_t conversions are involved in the "kinit -l 8500d" step.
Suppress the GSS y2038 tests when time_t is 32-bit.

ticket: 8352

src/tests/gssapi/t_gssapi.py

index 98c8df25cb41d3c9304c3850001e0f914e084bf3..6da5fceff3be81b83c7dae91ba80b27eb532434c 100755 (executable)
@@ -185,10 +185,11 @@ realm.run(['./t_ciflags', 'p:' + realm.host_princ])
 # contexts.
 realm.run(['./t_inq_ctx', 'user', password('user'), 'p:%s' % realm.host_princ])
 
+if runenv.sizeof_time_t <= 4:
+    skip_rest('y2038 GSSAPI tests', 'platform has 32-bit time_t')
+
 # Test lifetime results, using a realm with a large maximum lifetime
-# so that we can test ticket end dates after y2038.  There are no
-# time_t conversions involved, so we can run these tests on platforms
-# with 32-bit time_t.
+# so that we can test ticket end dates after y2038.
 realm.stop()
 conf = {'realms': {'$realm': {'max_life': '9000d'}}}
 realm = K5Realm(kdc_conf=conf, get_creds=False)