Skip to content

Commit 439012d

Browse files
committed
adjust xfopen commands
1 parent 6fed2fe commit 439012d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57706,7 +57706,7 @@ static int test_wolfSSL_BIO(void)
5770657706
ExpectIntEQ((int)BIO_set_mem_eof_return(f_bio1, -1), 0);
5770757707
ExpectIntEQ((int)BIO_set_mem_eof_return(NULL, -1), 0);
5770857708

57709-
ExpectTrue((f1 = XFOPEN(svrCertFile, "rwb")) != XBADFILE);
57709+
ExpectTrue((f1 = XFOPEN(svrCertFile, "rb+")) != XBADFILE);
5771057710
ExpectIntEQ((int)BIO_set_fp(f_bio1, f1, BIO_CLOSE), WOLFSSL_SUCCESS);
5771157711
ExpectIntEQ(BIO_write_filename(f_bio2, testFile),
5771257712
WOLFSSL_SUCCESS);
@@ -57730,7 +57730,7 @@ static int test_wolfSSL_BIO(void)
5773057730
BIO_free(f_bio2);
5773157731
f_bio2 = NULL;
5773257732

57733-
ExpectNotNull(f_bio1 = BIO_new_file(svrCertFile, "rwb"));
57733+
ExpectNotNull(f_bio1 = BIO_new_file(svrCertFile, "rb+"));
5773457734
ExpectIntEQ((int)BIO_set_mem_eof_return(f_bio1, -1), 0);
5773557735
ExpectIntEQ(BIO_read(f_bio1, cert, sizeof(cert)), sizeof(cert));
5773657736
BIO_free(f_bio1);
@@ -60382,7 +60382,7 @@ static int test_wc_ERR_print_errors_fp(void)
6038260382
XFILE fp = XBADFILE;
6038360383

6038460384
WOLFSSL_ERROR(WC_NO_ERR_TRACE(BAD_FUNC_ARG));
60385-
ExpectTrue((fp = XFOPEN("./tests/test-log-dump-to-file.txt", "ar")) !=
60385+
ExpectTrue((fp = XFOPEN("./tests/test-log-dump-to-file.txt", "a+")) !=
6038660386
XBADFILE);
6038760387
wc_ERR_print_errors_fp(fp);
6038860388
#if defined(DEBUG_WOLFSSL)

0 commit comments

Comments
 (0)