aboutsummaryrefslogtreecommitdiff
path: root/tests/asn1time_small.test
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2024-05-25 20:10:43 +0200
committerTheo Buehler <tb@openbsd.org>2024-05-25 21:32:38 +0200
commit7f39dda15a1232ae253680c07a17a0845c365ef1 (patch)
treec3aaf696eda652f18751287b3fa4acdc65a030d1 /tests/asn1time_small.test
parentf9874d49f651177d643cc86f8837db44c4a29558 (diff)
downloadportable-7f39dda15a1232ae253680c07a17a0845c365ef1.tar.gz
portable-7f39dda15a1232ae253680c07a17a0845c365ef1.tar.bz2
portable-7f39dda15a1232ae253680c07a17a0845c365ef1.zip
Clean up the time_t test mess
The RFC 5280 test now passes also with small time_t. The ASN.1 time test now has a test case that makes it fail for small time t. In that case use a wrapper script that prins why the test is expected to fail and makes the test suite fail if it passes.
Diffstat (limited to 'tests/asn1time_small.test')
-rwxr-xr-xtests/asn1time_small.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/asn1time_small.test b/tests/asn1time_small.test
new file mode 100755
index 0000000..94fbebf
--- /dev/null
+++ b/tests/asn1time_small.test
@@ -0,0 +1,10 @@
1#!/bin/sh
2echo 1..1
3TEST=./asn1time
4if [ -e ./asn1time.exe ]; then
5 TEST=./asn1time.exe
6fi
7
8# map test failure to XFAIL and success to XPASS
9$TEST || echo -n "not "
10echo "ok # this system is unable to represent times past 2038"