summaryrefslogtreecommitdiff
path: root/tests/test-year2038.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-year2038.c')
-rw-r--r--tests/test-year2038.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test-year2038.c b/tests/test-year2038.c
index 0facf930ed..d1989eb432 100644
--- a/tests/test-year2038.c
+++ b/tests/test-year2038.c
@@ -28,11 +28,12 @@
#include <sys/types.h>
#include "intprops.h"
-/* Check the range of time_t. */
-static_assert (TYPE_MAXIMUM (time_t) >> 31 != 0);
+/* Although this test could be done with static_assert, the test
+ harness prefers dynamic checking. */
int
main (void)
{
- return 0;
+ /* Check the range of time_t. */
+ return TYPE_MAXIMUM (time_t) >> 31 == 0;
}