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
3b36eee0
Commit
3b36eee0
authored
Apr 19, 2005
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add trailing '\n's to ok() calls.
parent
e8ec9d5f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
db.c
dlls/msi/tests/db.c
+10
-10
record.c
dlls/msi/tests/record.c
+5
-5
shelllink.c
dlls/shell32/tests/shelllink.c
+2
-2
msg.c
dlls/user/tests/msg.c
+1
-1
No files found.
dlls/msi/tests/db.c
View file @
3b36eee0
...
...
@@ -38,10 +38,10 @@ MSIHANDLE helper_createpackage()
/* create an empty database */
res
=
MsiOpenDatabase
(
szName
,
MSIDBOPEN_CREATE
,
&
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to create database"
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to create database
\n
"
);
res
=
MsiDatabaseCommit
(
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to commit database"
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to commit database
\n
"
);
/* build summmary info */
res
=
MsiGetSummaryInformation
(
hdb
,
NULL
,
7
,
&
suminfo
);
...
...
@@ -77,14 +77,14 @@ MSIHANDLE helper_createpackage()
ok
(
res
==
ERROR_SUCCESS
,
"Failed to make summary info persist
\n
"
);
res
=
MsiCloseHandle
(
suminfo
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close suminfo"
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close suminfo
\n
"
);
sprintf
(
szPackage
,
"#%li"
,(
DWORD
)
hdb
);
res
=
MsiOpenPackage
(
szPackage
,
&
hPackage
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to open package
\n
"
);
res
=
MsiCloseHandle
(
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close database"
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close database
\n
"
);
return
hPackage
;
}
...
...
@@ -98,7 +98,7 @@ static void test_createpackage(void)
ok
(
hPackage
!=
0
,
" Failed to create package
\n
"
);
res
=
MsiCloseHandle
(
hPackage
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close package"
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close package
\n
"
);
}
static
void
test_msidatabase
(
void
)
...
...
@@ -111,13 +111,13 @@ static void test_msidatabase(void)
/* create an empty database */
res
=
MsiOpenDatabase
(
szName
,
MSIDBOPEN_CREATE
,
&
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to create database"
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to create database
\n
"
);
res
=
MsiDatabaseCommit
(
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to commit database"
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to commit database
\n
"
);
res
=
MsiCloseHandle
(
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close database"
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close database
\n
"
);
res
=
DeleteFile
(
szName
);
ok
(
res
==
TRUE
,
"Falled to delete database
\n
"
);
...
...
@@ -396,7 +396,7 @@ void test_msibadqueries()
ok
(
r
==
ERROR_SUCCESS
,
"query 4 failed
\n
"
);
r
=
MsiDatabaseCommit
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to commit database after write"
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to commit database after write
\n
"
);
r
=
try_query
(
hdb
,
"CREATE TABLE `blah` (`foo` CHAR(72) NOT NULL "
"PRIMARY KEY `foo`)"
);
...
...
@@ -406,7 +406,7 @@ void test_msibadqueries()
ok
(
r
==
ERROR_SUCCESS
,
"failed to insert record in db
\n
"
);
r
=
MsiDatabaseCommit
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to commit database after write"
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to commit database after write
\n
"
);
r
=
try_query
(
hdb
,
"CREATE TABLE `boo` (`foo` CHAR(72) NOT NULL "
"PRIMARY KEY `ba`)"
);
...
...
dlls/msi/tests/record.c
View file @
3b36eee0
...
...
@@ -246,26 +246,26 @@ void test_msirecord(void)
sz
=
sizeof
buf
;
r
=
MsiRecordReadStream
(
h
,
1
,
NULL
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to read stream
\n
"
);
ok
(
sz
==
26
,
"couldn't get size of stream"
);
ok
(
sz
==
26
,
"couldn't get size of stream
\n
"
);
sz
=
0
;
r
=
MsiRecordReadStream
(
h
,
1
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to read stream
\n
"
);
ok
(
sz
==
0
,
"short read"
);
ok
(
sz
==
0
,
"short read
\n
"
);
sz
=
sizeof
buf
;
r
=
MsiRecordReadStream
(
h
,
1
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to read stream
\n
"
);
ok
(
sz
==
sizeof
buf
,
"short read"
);
ok
(
sz
==
sizeof
buf
,
"short read
\n
"
);
ok
(
!
strncmp
(
buf
,
"abcdefghij"
,
10
),
"read the wrong thing
\n
"
);
sz
=
sizeof
buf
;
r
=
MsiRecordReadStream
(
h
,
1
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to read stream
\n
"
);
ok
(
sz
==
sizeof
buf
,
"short read"
);
ok
(
sz
==
sizeof
buf
,
"short read
\n
"
);
ok
(
!
strncmp
(
buf
,
"klmnopqrst"
,
10
),
"read the wrong thing
\n
"
);
memset
(
buf
,
0
,
sizeof
buf
);
sz
=
sizeof
buf
;
r
=
MsiRecordReadStream
(
h
,
1
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to read stream
\n
"
);
ok
(
sz
==
6
,
"short read"
);
ok
(
sz
==
6
,
"short read
\n
"
);
ok
(
!
strcmp
(
buf
,
"uvwxyz"
),
"read the wrong thing
\n
"
);
memset
(
buf
,
0
,
sizeof
buf
);
sz
=
sizeof
buf
;
...
...
dlls/shell32/tests/shelllink.c
View file @
3b36eee0
...
...
@@ -52,7 +52,7 @@ static LPITEMIDLIST path_to_pidl(const char* path)
HMODULE
hdll
=
LoadLibraryA
(
"shell32.dll"
);
pSHSimpleIDListFromPathA
=
(
void
*
)
GetProcAddress
(
hdll
,
(
char
*
)
162
);
if
(
!
pSHSimpleIDListFromPathA
)
trace
(
"SHSimpleIDListFromPathA not found in shell32.dll"
);
trace
(
"SHSimpleIDListFromPathA not found in shell32.dll
\n
"
);
}
pidl
=
NULL
;
...
...
@@ -528,7 +528,7 @@ START_TEST(shelllink)
HRESULT
r
;
r
=
CoInitialize
(
NULL
);
ok
(
SUCCEEDED
(
r
),
"CoInitialize failed (0x%08lx)
\
b
"
,
r
);
ok
(
SUCCEEDED
(
r
),
"CoInitialize failed (0x%08lx)
\
n
"
,
r
);
if
(
!
SUCCEEDED
(
r
))
return
;
...
...
dlls/user/tests/msg.c
View file @
3b36eee0
...
...
@@ -5245,7 +5245,7 @@ static void test_winevents(void)
ok_sequence
(
WmGlobalHookSeq_2
,
"global hook 2"
,
FALSE
);
ret
=
UnhookWindowsHookEx
(
hCBT_global_hook
);
ok
(
ret
,
"UnhookWindowsHookEx error %ld"
,
GetLastError
());
ok
(
ret
,
"UnhookWindowsHookEx error %ld
\n
"
,
GetLastError
());
PostThreadMessageA
(
tid
,
WM_QUIT
,
0
,
0
);
ok
(
WaitForSingleObject
(
hthread
,
INFINITE
)
==
WAIT_OBJECT_0
,
"WaitForSingleObject failed
\n
"
);
...
...
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