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
edcaf53f
Commit
edcaf53f
authored
Mar 23, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Use strict comparison for return values.
parent
0a32123d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
18 deletions
+18
-18
autocomplete.c
dlls/shell32/tests/autocomplete.c
+5
-5
shelllink.c
dlls/shell32/tests/shelllink.c
+0
-0
shellpath.c
dlls/shell32/tests/shellpath.c
+12
-12
shlexec.c
dlls/shell32/tests/shlexec.c
+1
-1
shlfolder.c
dlls/shell32/tests/shlfolder.c
+0
-0
No files found.
dlls/shell32/tests/autocomplete.c
View file @
edcaf53f
...
...
@@ -47,7 +47,7 @@ static IAutoComplete *test_init(void)
win_skip
(
"CLSID_AutoComplete is not registered
\n
"
);
return
NULL
;
}
ok
(
SUCCEEDED
(
r
)
,
"no IID_IAutoComplete (0x%08x)
\n
"
,
r
);
ok
(
r
==
S_OK
,
"no IID_IAutoComplete (0x%08x)
\n
"
,
r
);
/* AutoComplete source */
r
=
CoCreateInstance
(
&
CLSID_ACLMulti
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
@@ -57,7 +57,7 @@ static IAutoComplete *test_init(void)
win_skip
(
"CLSID_ACLMulti is not registered
\n
"
);
return
NULL
;
}
ok
(
SUCCEEDED
(
r
)
,
"no IID_IACList (0x%08x)
\n
"
,
r
);
ok
(
r
==
S_OK
,
"no IID_IACList (0x%08x)
\n
"
,
r
);
if
(
0
)
{
...
...
@@ -66,7 +66,7 @@ if (0)
}
/* bind to edit control */
r
=
IAutoComplete_Init
(
ac
,
hEdit
,
acSource
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
r
)
,
"Init failed (0x%08x)
\n
"
,
r
);
ok
(
r
==
S_OK
,
"Init failed (0x%08x)
\n
"
,
r
);
IUnknown_Release
(
acSource
);
...
...
@@ -126,8 +126,8 @@ START_TEST(autocomplete)
IAutoComplete
*
ac
;
r
=
CoInitialize
(
NULL
);
ok
(
SUCCEEDED
(
r
)
,
"CoInitialize failed (0x%08x). Tests aborted.
\n
"
,
r
);
if
(
FAILED
(
r
)
)
ok
(
r
==
S_OK
,
"CoInitialize failed (0x%08x). Tests aborted.
\n
"
,
r
);
if
(
r
!=
S_OK
)
return
;
createMainWnd
();
...
...
dlls/shell32/tests/shelllink.c
View file @
edcaf53f
This diff is collapsed.
Click to expand it.
dlls/shell32/tests/shellpath.c
View file @
edcaf53f
...
...
@@ -201,7 +201,7 @@ static void loadShell32(void)
{
HRESULT
hr
=
pSHGetMalloc
(
&
pMalloc
);
ok
(
SUCCEEDED
(
hr
)
,
"SHGetMalloc failed: 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SHGetMalloc failed: 0x%08x
\n
"
,
hr
);
ok
(
pMalloc
!=
NULL
,
"SHGetMalloc returned a NULL IMalloc
\n
"
);
}
...
...
@@ -315,14 +315,14 @@ static void testSHGetFolderLocationInvalidArgs(void)
hr
=
pSHGetFolderLocation
(
NULL
,
0xeeee
,
NULL
,
0
,
&
pidl
);
ok
(
hr
==
E_INVALIDARG
,
"SHGetFolderLocation(NULL, 0xeeee, NULL, 0, &pidl) returned 0x%08x, expected E_INVALIDARG
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
)
)
if
(
hr
==
S_OK
)
IMalloc_Free
(
pMalloc
,
pidl
);
/* check a bogus user token: */
pidl
=
NULL
;
hr
=
pSHGetFolderLocation
(
NULL
,
CSIDL_FAVORITES
,
(
HANDLE
)
2
,
0
,
&
pidl
);
ok
(
hr
==
E_FAIL
||
hr
==
E_HANDLE
,
"SHGetFolderLocation(NULL, CSIDL_FAVORITES, 2, 0, &pidl) returned 0x%08x, expected E_FAIL or E_HANDLE
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
)
)
if
(
hr
==
S_OK
)
IMalloc_Free
(
pMalloc
,
pidl
);
/* a NULL pidl pointer crashes, so don't test it */
}
...
...
@@ -403,7 +403,7 @@ static BYTE testSHGetFolderLocation(int folder)
pidl
=
NULL
;
hr
=
pSHGetFolderLocation
(
NULL
,
folder
,
NULL
,
0
,
&
pidl
);
if
(
SUCCEEDED
(
hr
)
)
if
(
hr
==
S_OK
)
{
if
(
pidl
)
{
...
...
@@ -431,7 +431,7 @@ static BYTE testSHGetSpecialFolderLocation(int folder)
pidl
=
NULL
;
hr
=
pSHGetSpecialFolderLocation
(
NULL
,
folder
,
&
pidl
);
if
(
SUCCEEDED
(
hr
)
)
if
(
hr
==
S_OK
)
{
if
(
pidl
)
{
...
...
@@ -455,7 +455,7 @@ static void testSHGetFolderPath(BOOL optional, int folder)
if
(
!
pSHGetFolderPathA
)
return
;
hr
=
pSHGetFolderPathA
(
NULL
,
folder
,
NULL
,
SHGFP_TYPE_CURRENT
,
path
);
ok
(
SUCCEEDED
(
hr
)
||
optional
,
ok
(
hr
==
S_OK
||
optional
,
"SHGetFolderPathA(NULL, %s, NULL, SHGFP_TYPE_CURRENT, path) failed: 0x%08x
\n
"
,
getFolderName
(
folder
),
hr
);
}
...
...
@@ -555,7 +555,7 @@ static void matchGUID(int folder, const GUID *guid, const GUID *guid_alt)
pidl
=
NULL
;
hr
=
pSHGetFolderLocation
(
NULL
,
folder
,
NULL
,
0
,
&
pidl
);
if
(
SUCCEEDED
(
hr
)
)
if
(
hr
==
S_OK
)
{
LPITEMIDLIST
pidlLast
=
pILFindLastID
(
pidl
);
...
...
@@ -734,7 +734,7 @@ static void testNonExistentPath1(void)
&
pidl
);
ok
(
hr
==
E_FAIL
||
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
),
"SHGetFolderLocation returned 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
)
&&
pidl
)
if
(
hr
==
S_OK
&&
pidl
)
IMalloc_Free
(
pMalloc
,
pidl
);
ok
(
!
pSHGetSpecialFolderPathA
(
NULL
,
path
,
CSIDL_FAVORITES
,
FALSE
),
"SHGetSpecialFolderPath succeeded, expected failure
\n
"
);
...
...
@@ -742,12 +742,12 @@ static void testNonExistentPath1(void)
hr
=
pSHGetSpecialFolderLocation
(
NULL
,
CSIDL_FAVORITES
,
&
pidl
);
ok
(
hr
==
E_FAIL
||
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
),
"SHGetFolderLocation returned 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
)
&&
pidl
)
if
(
hr
==
S_OK
&&
pidl
)
IMalloc_Free
(
pMalloc
,
pidl
);
/* now test success: */
hr
=
pSHGetFolderPathA
(
NULL
,
CSIDL_FAVORITES
|
CSIDL_FLAG_CREATE
,
NULL
,
SHGFP_TYPE_CURRENT
,
path
);
if
(
SUCCEEDED
(
hr
)
)
if
(
hr
==
S_OK
)
{
BOOL
ret
;
...
...
@@ -769,7 +769,7 @@ static void testNonExistentPath1(void)
ret
=
RemoveDirectoryA
(
path
);
ok
(
ret
,
"failed to remove %s error %u
\n
"
,
path
,
GetLastError
()
);
}
ok
(
SUCCEEDED
(
hr
)
,
ok
(
hr
==
S_OK
,
"SHGetFolderPath(NULL, CSIDL_FAVORITES | CSIDL_FLAG_CREATE, "
"NULL, SHGFP_TYPE_CURRENT, path) failed: 0x%08x
\n
"
,
hr
);
}
...
...
@@ -784,7 +784,7 @@ static void testNonExistentPath2(void)
hr
=
pSHGetFolderPathA
(
NULL
,
CSIDL_FAVORITES
|
CSIDL_FLAG_CREATE
,
NULL
,
SHGFP_TYPE_CURRENT
,
path
);
ok
(
SUCCEEDED
(
hr
)
,
"SHGetFolderPath failed: 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SHGetFolderPath failed: 0x%08x
\n
"
,
hr
);
}
static
void
doChild
(
const
char
*
arg
)
...
...
dlls/shell32/tests/shlexec.c
View file @
edcaf53f
...
...
@@ -1854,7 +1854,7 @@ static void init_test(void)
}
r
=
CoInitialize
(
NULL
);
ok
(
SUCCEEDED
(
r
)
,
"CoInitialize failed (0x%08x)
\n
"
,
r
);
ok
(
r
==
S_OK
,
"CoInitialize failed (0x%08x)
\n
"
,
r
);
if
(
FAILED
(
r
))
exit
(
1
);
...
...
dlls/shell32/tests/shlfolder.c
View file @
edcaf53f
This diff is collapsed.
Click to expand it.
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