Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4c314000
Commit
4c314000
authored
May 23, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
May 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the tests compile with Visual C++.
parent
b3c7a792
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
58 additions
and
47 deletions
+58
-47
alloc.c
dlls/kernel/tests/alloc.c
+1
-1
file.c
dlls/kernel/tests/file.c
+4
-5
process.c
dlls/kernel/tests/process.c
+2
-1
thread.c
dlls/kernel/tests/thread.c
+4
-1
vartest.c
dlls/oleaut32/tests/vartest.c
+10
-11
shreg.c
dlls/shlwapi/tests/shreg.c
+1
-2
class.c
dlls/user/tests/class.c
+2
-1
wsprintf.c
dlls/user/tests/wsprintf.c
+2
-1
sock.c
dlls/winsock/tests/sock.c
+32
-24
No files found.
dlls/kernel/tests/alloc.c
View file @
4c314000
...
...
@@ -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
...
...
dlls/kernel/tests/file.c
View file @
4c314000
...
...
@@ -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
=
...
...
dlls/kernel/tests/process.c
View file @
4c314000
...
...
@@ -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
];
...
...
dlls/kernel/tests/thread.c
View file @
4c314000
...
...
@@ -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
,
...
...
dlls/oleaut32/tests/vartest.c
View file @
4c314000
...
...
@@ -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
...
...
dlls/shlwapi/tests/shreg.c
View file @
4c314000
...
...
@@ -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"
;
...
...
dlls/user/tests/class.c
View file @
4c314000
...
...
@@ -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
...
...
dlls/user/tests/wsprintf.c
View file @
4c314000
...
...
@@ -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
)
{
...
...
dlls/winsock/tests/sock.c
View file @
4c314000
...
...
@@ -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
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment