diff options
author | Rich Salz <rsalz@akamai.com> | 2019-07-31 15:24:20 -0400 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-08-02 11:41:54 +0200 |
commit | ff988500c2f39ae61b2836167b6e0e7b2021220c (patch) | |
tree | ead6acf74e2cf8c8be430e02f78dddcf8281b0cc /test | |
parent | 823ee00a396f91df4517af13dafae679ae10b3f4 (diff) | |
download | openssl-ff988500c2f39ae61b2836167b6e0e7b2021220c.tar.gz |
Replace FUNCerr with ERR_raise_data
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9496)
Diffstat (limited to 'test')
-rw-r--r-- | test/errtest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/errtest.c b/test/errtest.c index 1a18335b6e..95c52427e4 100644 --- a/test/errtest.c +++ b/test/errtest.c @@ -54,12 +54,13 @@ static int platform_error(void) file = __FILE__; line = __LINE__ + 1; /* The error is generated on the next line */ - FUNCerr("exit", ERR_R_INTERNAL_ERROR); + ERR_raise_data(ERR_LIB_SYS, ERR_R_INTERNAL_ERROR, + "calling exit()"); if (!TEST_ulong_ne(e = ERR_get_error_line_data(&f, &l, &data, NULL), 0) || !TEST_int_eq(ERR_GET_REASON(e), ERR_R_INTERNAL_ERROR) || !TEST_int_eq(l, line) || !TEST_str_eq(f, file) - || !TEST_str_eq(data, "calling function exit")) + || !TEST_str_eq(data, "calling exit()")) return 0; return 1; } |