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
0038d5ad
Commit
0038d5ad
authored
Sep 07, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version/tests: Mark a test that fails on Wow64 as todo.
parent
87653d26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
install.c
dlls/version/tests/install.c
+12
-0
No files found.
dlls/version/tests/install.c
View file @
0038d5ad
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include "winver.h"
#include "winver.h"
#include "shlobj.h"
#include "shlobj.h"
static
BOOL
is_wow64
;
static
void
test_find_file
(
void
)
static
void
test_find_file
(
void
)
{
{
DWORD
ret
;
DWORD
ret
;
...
@@ -247,16 +249,19 @@ static void test_find_file(void)
...
@@ -247,16 +249,19 @@ static void test_find_file(void)
dwCur
=
MAX_PATH
;
dwCur
=
MAX_PATH
;
dwOut
=
MAX_PATH
;
dwOut
=
MAX_PATH
;
ret
=
VerFindFileA
(
VFFF_ISSHAREDFILE
,
"regedit.exe"
,
NULL
,
NULL
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
ret
=
VerFindFileA
(
VFFF_ISSHAREDFILE
,
"regedit.exe"
,
NULL
,
NULL
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
todo_wine_if
(
is_wow64
)
ok
(
ret
&
VFF_CURNEDEST
,
"Wrong return value got %lx expected VFF_CURNEDEST set
\n
"
,
ret
);
ok
(
ret
&
VFF_CURNEDEST
,
"Wrong return value got %lx expected VFF_CURNEDEST set
\n
"
,
ret
);
dwCur
=
MAX_PATH
;
dwCur
=
MAX_PATH
;
dwOut
=
MAX_PATH
;
dwOut
=
MAX_PATH
;
ret
=
VerFindFileA
(
VFFF_ISSHAREDFILE
,
"regedit.exe"
,
NULL
,
empty
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
ret
=
VerFindFileA
(
VFFF_ISSHAREDFILE
,
"regedit.exe"
,
NULL
,
empty
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
todo_wine_if
(
is_wow64
)
ok
(
ret
&
VFF_CURNEDEST
,
"Wrong return value got %lx expected VFF_CURNEDEST set
\n
"
,
ret
);
ok
(
ret
&
VFF_CURNEDEST
,
"Wrong return value got %lx expected VFF_CURNEDEST set
\n
"
,
ret
);
dwCur
=
MAX_PATH
;
dwCur
=
MAX_PATH
;
dwOut
=
MAX_PATH
;
dwOut
=
MAX_PATH
;
ret
=
VerFindFileA
(
VFFF_ISSHAREDFILE
,
"regedit.exe"
,
NULL
,
appdir
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
ret
=
VerFindFileA
(
VFFF_ISSHAREDFILE
,
"regedit.exe"
,
NULL
,
appdir
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
todo_wine_if
(
is_wow64
)
ok
(
ret
&
VFF_CURNEDEST
,
"Wrong return value got %lx expected VFF_CURNEDEST set
\n
"
,
ret
);
ok
(
ret
&
VFF_CURNEDEST
,
"Wrong return value got %lx expected VFF_CURNEDEST set
\n
"
,
ret
);
/* nonexistent filename */
/* nonexistent filename */
...
@@ -346,6 +351,13 @@ static void test_install_file(void)
...
@@ -346,6 +351,13 @@ static void test_install_file(void)
START_TEST
(
install
)
START_TEST
(
install
)
{
{
#ifndef _WIN64
BOOL
(
WINAPI
*
pIsWow64Process
)(
HANDLE
,
BOOL
*
);
if
((
pIsWow64Process
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
"IsWow64Process"
)))
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
);
#endif
test_find_file
();
test_find_file
();
test_install_file
();
test_install_file
();
}
}
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