#include <apitest.h>
#include <stdio.h>
Go to the source code of this file.
◆ WIN32_NO_STATUS
◆ START_TEST()
◆ Test_popen()
static void Test_popen |
( |
| ) |
|
|
static |
Definition at line 13 of file popen.c.
14{
18
19
20 f =
_popen(
"cmd.exe /C \"echo Hallo\"",
"r");
21 ok(
f !=
NULL,
"_popen returns NULL!\n");
22
25 ok(
lstrcmp(
str,
"Hallo\n") == 0,
"fgets: expected \"Hallo\", got %s.\n",
str);
26
28 ok(
r == 0,
"_pclose: expected 0, got %i.\n",
r);
30 ok(
r == 0,
"_errno: expected 0, got %i,\n",
r);
31}
GLdouble GLdouble GLdouble r
_Check_return_opt_ _CRTIMP int __cdecl _pclose(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl _popen(_In_z_ const char *_Command, _In_z_ const char *_Mode)
_CRTIMP int *__cdecl _errno(void)
Referenced by START_TEST().