mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:25:40 +00:00
[MSVCRT_WINETEST] Skip 2 hanging pipe tests on ReactOS
This commit is contained in:
parent
1fef0ce8de
commit
d0ca0f41f7
2 changed files with 21 additions and 2 deletions
|
@ -1802,6 +1802,14 @@ static void test_file_inherit( const char* selfname )
|
||||||
arg_v[2] = "inherit";
|
arg_v[2] = "inherit";
|
||||||
arg_v[3] = buffer; sprintf(buffer, "%d", fd);
|
arg_v[3] = buffer; sprintf(buffer, "%d", fd);
|
||||||
arg_v[4] = 0;
|
arg_v[4] = 0;
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if (is_reactos())
|
||||||
|
{
|
||||||
|
skip("Skipping test_file_inherit pipe test, because it hangs on ReactOS\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#endif
|
||||||
ret = _spawnvp(_P_WAIT, selfname, arg_v);
|
ret = _spawnvp(_P_WAIT, selfname, arg_v);
|
||||||
ok(ret == 0, "_spawnvp returned %Id, errno %d\n", ret, errno);
|
ok(ret == 0, "_spawnvp returned %Id, errno %d\n", ret, errno);
|
||||||
ret = tell(fd);
|
ret = tell(fd);
|
||||||
|
@ -1815,7 +1823,9 @@ static void test_file_inherit( const char* selfname )
|
||||||
CloseHandle(thread_handle);
|
CloseHandle(thread_handle);
|
||||||
close(pipefds[0]);
|
close(pipefds[0]);
|
||||||
close(pipefds[1]);
|
close(pipefds[1]);
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
}
|
||||||
|
#endif
|
||||||
/* make file handle inheritable */
|
/* make file handle inheritable */
|
||||||
sa.nLength = sizeof(sa);
|
sa.nLength = sizeof(sa);
|
||||||
sa.lpSecurityDescriptor = NULL;
|
sa.lpSecurityDescriptor = NULL;
|
||||||
|
@ -2513,7 +2523,13 @@ static void test_pipes(const char* selfname)
|
||||||
char expected[4096];
|
char expected[4096];
|
||||||
int r;
|
int r;
|
||||||
int i;
|
int i;
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if (is_reactos())
|
||||||
|
{
|
||||||
|
win_skip("Skipping test_pipes, because it hangs on ReactOS\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
/* Test reading from a pipe with read() */
|
/* Test reading from a pipe with read() */
|
||||||
if (_pipe(pipes, 1024, O_BINARY) < 0)
|
if (_pipe(pipes, 1024, O_BINARY) < 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1001,6 +1001,9 @@ int main( int argc, char **argv )
|
||||||
#define ok_ntstatus(status, expected) ok_hex(status, expected)
|
#define ok_ntstatus(status, expected) ok_hex(status, expected)
|
||||||
#define ok_hdl ok_ptr
|
#define ok_hdl ok_ptr
|
||||||
|
|
||||||
|
#define is_reactos() \
|
||||||
|
(*(unsigned*)((size_t)0x7FFE0FFC) == 0x8EAC705)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue