summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2019-07-31 15:24:20 -0400
committerRichard Levitte <levitte@openssl.org>2019-08-02 11:41:54 +0200
commitff988500c2f39ae61b2836167b6e0e7b2021220c (patch)
treeead6acf74e2cf8c8be430e02f78dddcf8281b0cc /test
parent823ee00a396f91df4517af13dafae679ae10b3f4 (diff)
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.c5
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;
}