Make the tests compile with Visual C++.
This commit is contained in:
parent
b3c7a79225
commit
4c314000b9
|
@ -18,9 +18,9 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "wine/test.h"
|
||||
|
||||
/* Currently Wine doesn't have macros for LocalDiscard and GlobalDiscard
|
||||
so I am disableing the checks for them. These macros are equivalent
|
||||
|
|
|
@ -19,14 +19,13 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "wine/test.h"
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
|
||||
|
||||
LPCSTR filename = "testfile.xxx";
|
||||
LPCSTR sillytext =
|
||||
|
|
|
@ -21,9 +21,10 @@
|
|||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
#include "wine/test.h"
|
||||
|
||||
static char base[MAX_PATH];
|
||||
static char selfname[MAX_PATH];
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
/* Define _WIN32_WINNT to get SetThreadIdealProcessor on Windows */
|
||||
#define _WIN32_WINNT 0x0500
|
||||
|
||||
#include "wine/test.h"
|
||||
#include <winbase.h>
|
||||
#include <winnt.h>
|
||||
|
@ -45,7 +48,7 @@
|
|||
#include "wine/exception.h"
|
||||
#endif
|
||||
#endif
|
||||
typedef HANDLE WINAPI (*OPENTHREADPTR)(DWORD,BOOL,DWORD);
|
||||
typedef HANDLE (WINAPI *OPENTHREADPTR)(DWORD,BOOL,DWORD);
|
||||
OPENTHREADPTR OpenThreadPtr;
|
||||
HANDLE WINAPI OpenThreadDefault(DWORD dwDesiredAccess,
|
||||
BOOL bInheritHandle,
|
||||
|
|
|
@ -57,22 +57,21 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <winbase.h>
|
||||
#include <winuser.h>
|
||||
#include <wingdi.h>
|
||||
#include <winnls.h>
|
||||
#include <winerror.h>
|
||||
#include <winnt.h>
|
||||
|
||||
#include <oleauto.h>
|
||||
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <windef.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
#include "wingdi.h"
|
||||
#include "winnls.h"
|
||||
#include "winerror.h"
|
||||
#include "winnt.h"
|
||||
|
||||
#include "wtypes.h"
|
||||
#include "oleauto.h"
|
||||
|
||||
|
||||
#define MAX_BUFFER 1024
|
||||
|
||||
|
|
|
@ -23,10 +23,9 @@
|
|||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "winreg.h"
|
||||
#include "winuser.h"
|
||||
#include "wine/obj_base.h"
|
||||
#include "wine/obj_storage.h"
|
||||
#include "shlwapi.h"
|
||||
|
||||
static char * sTestpath1 = "%SYSTEMROOT%\\subdir1";
|
||||
|
|
|
@ -20,11 +20,12 @@
|
|||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "winreg.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "wine/test.h"
|
||||
|
||||
#define NUMCLASSWORDS 4
|
||||
|
||||
|
|
|
@ -21,9 +21,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
#include "wine/test.h"
|
||||
|
||||
static BOOL wsprintfATest (void)
|
||||
{
|
||||
|
|
|
@ -623,45 +623,53 @@ static void do_test( test_setup *test )
|
|||
/************* Array containing the tests to run **********/
|
||||
|
||||
#define STD_STREAM_SOCKET \
|
||||
sock_type: SOCK_STREAM, \
|
||||
sock_prot: 0, \
|
||||
inet_addr: "127.0.0.1", \
|
||||
inet_port: 9374
|
||||
SOCK_STREAM, \
|
||||
0, \
|
||||
"127.0.0.1", \
|
||||
9374
|
||||
|
||||
static test_setup tests [NUM_TESTS] =
|
||||
{
|
||||
/* Test 0: synchronous client and server */
|
||||
{
|
||||
general: {
|
||||
{
|
||||
STD_STREAM_SOCKET,
|
||||
chunk_size: 2048,
|
||||
n_chunks: 16,
|
||||
n_clients: 2
|
||||
2048,
|
||||
16,
|
||||
2
|
||||
},
|
||||
srv: simple_server,
|
||||
srv_params: {
|
||||
buflen: 64
|
||||
simple_server,
|
||||
{
|
||||
NULL,
|
||||
0,
|
||||
64
|
||||
},
|
||||
clt: simple_client,
|
||||
clt_params: {
|
||||
buflen: 128
|
||||
simple_client,
|
||||
{
|
||||
NULL,
|
||||
0,
|
||||
128
|
||||
}
|
||||
},
|
||||
/* Test 1: event-driven client, synchronous server */
|
||||
{
|
||||
general: {
|
||||
{
|
||||
STD_STREAM_SOCKET,
|
||||
chunk_size: 2048,
|
||||
n_chunks: 16,
|
||||
n_clients: 2
|
||||
2048,
|
||||
16,
|
||||
2
|
||||
},
|
||||
srv: simple_server,
|
||||
srv_params: {
|
||||
buflen: 64
|
||||
simple_server,
|
||||
{
|
||||
NULL,
|
||||
0,
|
||||
64
|
||||
},
|
||||
clt: event_client,
|
||||
clt_params: {
|
||||
buflen: 128
|
||||
event_client,
|
||||
{
|
||||
NULL,
|
||||
0,
|
||||
128
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue