mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-27 00:28:14 +00:00
test(libc): cover printf_s on a closed standard output
This commit is contained in:
1 parent
1c3ad7ebfd
commit
2562a7d9d1
1 file changed
+4
@@ -558,6 +558,10 @@ static int CheckClosedStandardOutput() {
|
||||
Require(printf_nid_postfix("%d", 1) == -1 && *__error_nid_postfix() == 9);
|
||||
Require(puts_nid_postfix("text") == -1 && *__error_nid_postfix() == 9);
|
||||
Require(PrintStandard("%d", 1) == -1 && *__error_nid_postfix() == 9);
|
||||
*__error_nid_postfix() = 0;
|
||||
Require(printf_s_nid_postfix("%d", 1) == -1 && *__error_nid_postfix() == 9);
|
||||
*__error_nid_postfix() = 0;
|
||||
Require(printf_s_nid_postfix("%p", nullptr) == -1 && *__error_nid_postfix() == 9);
|
||||
Require(fputs_nid_postfix("text", __stdoutp_nid_postfix) == -1 && *__error_nid_postfix() == 9);
|
||||
*__error_nid_postfix() = 0;
|
||||
Require(wprintf_nid_postfix(u"%d", 1) == -1 && *__error_nid_postfix() == 9);
|
||||
|
||||
Reference in new issue
Block a user