diff options
author | Theo Buehler <tb@openbsd.org> | 2024-05-25 20:10:43 +0200 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-05-25 21:32:38 +0200 |
commit | 7f39dda15a1232ae253680c07a17a0845c365ef1 (patch) | |
tree | c3aaf696eda652f18751287b3fa4acdc65a030d1 /tests/asn1time_small.test | |
parent | f9874d49f651177d643cc86f8837db44c4a29558 (diff) | |
download | portable-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-x | tests/asn1time_small.test | 10 |
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 | ||
2 | echo 1..1 | ||
3 | TEST=./asn1time | ||
4 | if [ -e ./asn1time.exe ]; then | ||
5 | TEST=./asn1time.exe | ||
6 | fi | ||
7 | |||
8 | # map test failure to XFAIL and success to XPASS | ||
9 | $TEST || echo -n "not " | ||
10 | echo "ok # this system is unable to represent times past 2038" | ||