Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
68ea3623
Commit
68ea3623
authored
Sep 11, 2003
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify winetest_ok to only add a trailing '\n' if there is none.
Modify macros in the kernel, oleaut32 and user tests to print a '\n'.
parent
ee069f7c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
locale.c
dlls/kernel/tests/locale.c
+1
-1
vartest.c
dlls/oleaut32/tests/vartest.c
+2
-2
sysparams.c
dlls/user/tests/sysparams.c
+1
-1
test.h
include/wine/test.h
+9
-4
No files found.
dlls/kernel/tests/locale.c
View file @
68ea3623
...
...
@@ -29,7 +29,7 @@
#include "winnls.h"
#define eq(received, expected, label, type) \
ok((received) == (expected), "%s: got " type " instead of " type, (label),(received),(expected))
ok((received) == (expected), "%s: got " type " instead of " type
"\n"
, (label),(received),(expected))
#define BUFFER_SIZE 128
/* Buffer used by callback function */
...
...
dlls/oleaut32/tests/vartest.c
View file @
68ea3623
...
...
@@ -1761,8 +1761,8 @@ START_TEST(vartest)
*/
trace
(
"======== Testing VarUI1FromXXX ========
\n
"
);
#define XOK "should return S_OK"
#define XOV "should return DISP_E_OVERFLOW"
#define XOK "should return S_OK
\n
"
#define XOV "should return DISP_E_OVERFLOW
\n
"
/* Crashes on Win95: VarUI1FromI2( 0, NULL ) */
ok
(
VarUI1FromStr
(
NULL
,
lcid
,
0
,
pByte
)
==
DISP_E_TYPEMISMATCH
,
"should return DISP_E_TYPEMISMATCH"
);
...
...
dlls/user/tests/sysparams.c
View file @
68ea3623
...
...
@@ -35,7 +35,7 @@
static
int
strict
;
#define eq(received, expected, label, type) \
ok((received) == (expected), "%s: got " type " instead of " type, (label),(received),(expected))
ok((received) == (expected), "%s: got " type " instead of " type
"\n"
, (label),(received),(expected))
#define SPI_SETBEEP_REGKEY "Control Panel\\Sound"
...
...
include/wine/test.h
View file @
68ea3623
...
...
@@ -156,6 +156,7 @@ void winetest_set_location( const char* file, int line )
int
winetest_ok
(
int
condition
,
const
char
*
msg
,
...
)
{
va_list
valist
;
int
len
;
tls_data
*
data
=
get_tls_data
();
if
(
data
->
todo_level
)
...
...
@@ -164,14 +165,16 @@ int winetest_ok( int condition, const char *msg, ... )
{
fprintf
(
stdout
,
"%s:%d: Test succeeded inside todo block"
,
data
->
current_file
,
data
->
current_line
);
if
(
msg
&&
msg
[
0
])
if
(
msg
[
0
])
{
va_start
(
valist
,
msg
);
fprintf
(
stdout
,
": "
);
vfprintf
(
stdout
,
msg
,
valist
);
va_end
(
valist
);
}
fputc
(
'\n'
,
stdout
);
len
=
strlen
(
msg
);
if
(
len
==
0
||
msg
[
len
-
1
]
!=
'\n'
)
fputc
(
'\n'
,
stdout
);
InterlockedIncrement
(
&
todo_failures
);
return
0
;
}
...
...
@@ -183,14 +186,16 @@ int winetest_ok( int condition, const char *msg, ... )
{
fprintf
(
stdout
,
"%s:%d: Test failed"
,
data
->
current_file
,
data
->
current_line
);
if
(
msg
&&
msg
[
0
])
if
(
msg
[
0
])
{
va_start
(
valist
,
msg
);
fprintf
(
stdout
,
": "
);
vfprintf
(
stdout
,
msg
,
valist
);
va_end
(
valist
);
}
fputc
(
'\n'
,
stdout
);
len
=
strlen
(
msg
);
if
(
len
==
0
||
msg
[
len
-
1
]
!=
'\n'
)
fputc
(
'\n'
,
stdout
);
InterlockedIncrement
(
&
failures
);
return
0
;
}
...
...
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