#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}
char *CDECL fgets(char *s, int size, FILE *file)
_ACRTIMP int __cdecl _pclose(FILE *)
_ACRTIMP FILE *__cdecl _popen(const char *, const char *)
GLdouble GLdouble GLdouble r
Referenced by START_TEST().