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
659f6fe3
Commit
659f6fe3
authored
Mar 08, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
virtdisk/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68b44938
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
dlls/virtdisk/tests/Makefile.in
+0
-1
virtdisk.c
dlls/virtdisk/tests/virtdisk.c
+8
-8
No files found.
dlls/virtdisk/tests/Makefile.in
View file @
659f6fe3
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
virtdisk.dll
C_SRCS
=
\
...
...
dlls/virtdisk/tests/virtdisk.c
View file @
659f6fe3
...
...
@@ -40,10 +40,10 @@ static void test_GetStorageDependencyInformation(void)
info
=
heap_alloc
(
size
);
ret
=
pGetStorageDependencyInformation
(
handle
,
GET_STORAGE_DEPENDENCY_FLAG_DISK_HANDLE
,
0
,
info
,
0
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %
l
d
\n
"
,
ret
);
ret
=
pGetStorageDependencyInformation
(
handle
,
GET_STORAGE_DEPENDENCY_FLAG_DISK_HANDLE
,
size
,
NULL
,
0
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %
l
d
\n
"
,
ret
);
heap_free
(
info
);
CloseHandle
(
handle
);
...
...
@@ -58,27 +58,27 @@ static void test_OpenVirtualDisk(void)
static
const
WCHAR
vdisk
[]
=
L"test.vhd"
;
ret
=
pOpenVirtualDisk
(
NULL
,
NULL
,
VIRTUAL_DISK_ACCESS_NONE
,
OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS
,
NULL
,
&
handle
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %
l
d
\n
"
,
ret
);
stgtype
.
DeviceId
=
VIRTUAL_STORAGE_TYPE_DEVICE_UNKNOWN
;
stgtype
.
VendorId
=
VIRTUAL_STORAGE_TYPE_VENDOR_UNKNOWN
;
ret
=
pOpenVirtualDisk
(
&
stgtype
,
NULL
,
VIRTUAL_DISK_ACCESS_NONE
,
OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS
,
NULL
,
&
handle
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %
l
d
\n
"
,
ret
);
param
.
Version
=
OPEN_VIRTUAL_DISK_VERSION_3
;
ret
=
pOpenVirtualDisk
(
&
stgtype
,
vdisk
,
VIRTUAL_DISK_ACCESS_NONE
,
OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS
,
&
param
,
&
handle
);
ok
((
ret
==
ERROR_INVALID_PARAMETER
)
||
(
ret
==
ERROR_FILE_NOT_FOUND
),
"Expected ERROR_INVALID_PARAMETER or ERROR_FILE_NOT_FOUND (>= Win 10), got %d
\n
"
,
ret
);
ok
((
ret
==
ERROR_INVALID_PARAMETER
)
||
(
ret
==
ERROR_FILE_NOT_FOUND
),
"Expected ERROR_INVALID_PARAMETER or ERROR_FILE_NOT_FOUND (>= Win 10), got %
l
d
\n
"
,
ret
);
param
.
Version
=
OPEN_VIRTUAL_DISK_VERSION_2
;
ret
=
pOpenVirtualDisk
(
&
stgtype
,
vdisk
,
VIRTUAL_DISK_ACCESS_NONE
,
OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS
,
&
param
,
&
handle
);
ok
((
ret
==
ERROR_INVALID_PARAMETER
)
||
(
ret
==
ERROR_FILE_NOT_FOUND
),
"Expected ERROR_INVALID_PARAMETER or ERROR_FILE_NOT_FOUND (>= Win 8), got %d
\n
"
,
ret
);
ok
((
ret
==
ERROR_INVALID_PARAMETER
)
||
(
ret
==
ERROR_FILE_NOT_FOUND
),
"Expected ERROR_INVALID_PARAMETER or ERROR_FILE_NOT_FOUND (>= Win 8), got %
l
d
\n
"
,
ret
);
param
.
Version
=
OPEN_VIRTUAL_DISK_VERSION_1
;
ret
=
pOpenVirtualDisk
(
&
stgtype
,
vdisk
,
0xffffff
,
OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS
,
&
param
,
&
handle
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %
l
d
\n
"
,
ret
);
ret
=
pOpenVirtualDisk
(
&
stgtype
,
vdisk
,
VIRTUAL_DISK_ACCESS_NONE
,
OPEN_VIRTUAL_DISK_FLAG_NONE
,
&
param
,
&
handle
);
todo_wine
ok
(
ret
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
ret
);
todo_wine
ok
(
ret
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %
l
d
\n
"
,
ret
);
}
START_TEST
(
virtdisk
)
...
...
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