diff options
| author | jsing <> | 2023-03-11 14:27:38 +0000 |
|---|---|---|
| committer | jsing <> | 2023-03-11 14:27:38 +0000 |
| commit | 2e5da2b49d0dfd3201a55a5bde6359c5a9a1c4f5 (patch) | |
| tree | a7e4a41c204bbd95b5189489a6cb046118b35ef0 /src | |
| parent | 52fd1244f8c53de73ef10d4f9511eee80489d31a (diff) | |
| download | openbsd-2e5da2b49d0dfd3201a55a5bde6359c5a9a1c4f5.tar.gz openbsd-2e5da2b49d0dfd3201a55a5bde6359c5a9a1c4f5.tar.bz2 openbsd-2e5da2b49d0dfd3201a55a5bde6359c5a9a1c4f5.zip | |
Add OPENSSL_cleanup() calls to some regress.
This gets us some minimal test coverage.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/evp/evp_test.c | 4 | ||||
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/evp/evp_test.c b/src/regress/lib/libcrypto/evp/evp_test.c index dbfe442377..4a671d978d 100644 --- a/src/regress/lib/libcrypto/evp/evp_test.c +++ b/src/regress/lib/libcrypto/evp/evp_test.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_test.c,v 1.3 2022/11/26 16:08:56 tb Exp $ */ | 1 | /* $OpenBSD: evp_test.c,v 1.4 2023/03/11 14:27:38 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -145,5 +145,7 @@ main(int argc, char **argv) | |||
| 145 | failed |= evp_asn1_method_test(); | 145 | failed |= evp_asn1_method_test(); |
| 146 | failed |= evp_pkey_method_test(); | 146 | failed |= evp_pkey_method_test(); |
| 147 | 147 | ||
| 148 | OPENSSL_cleanup(); | ||
| 149 | |||
| 148 | return failed; | 150 | return failed; |
| 149 | } | 151 | } |
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index f98d4b13e8..7183e1bbe9 100644 --- a/src/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/src/regress/lib/libcrypto/wycheproof/wycheproof.go | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: wycheproof.go,v 1.138 2023/03/08 06:12:52 jsing Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.139 2023/03/11 14:27:37 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2018,2019,2022 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018,2019,2022 Theo Buehler <tb@openbsd.org> |
| @@ -3024,6 +3024,8 @@ func main() { | |||
| 3024 | 3024 | ||
| 3025 | testc.shutdown() | 3025 | testc.shutdown() |
| 3026 | 3026 | ||
| 3027 | C.OPENSSL_cleanup() | ||
| 3028 | |||
| 3027 | if !success { | 3029 | if !success { |
| 3028 | os.Exit(1) | 3030 | os.Exit(1) |
| 3029 | } | 3031 | } |
