tests: Add test to ensure 64 bit time_t

This commit is contained in:
Tomas Babej 2020-12-10 00:51:41 -05:00
parent af5e81434f
commit 1a52c59356
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -53,6 +53,11 @@ class TestDiagnostics(TestCase):
self.assertIn("edlin", out)
self.assertIn("strict", out)
def test_64bit_time_t(self):
"""Test that time_t has size of 64 bits"""
code, out, err = self.t.diag()
self.assertIn("+time_t64", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner