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
68b83a8a
Commit
68b83a8a
authored
Jan 27, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Add possible test_need_media results for Win10.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
362e39a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
install.c
dlls/setupapi/tests/install.c
+9
-6
No files found.
dlls/setupapi/tests/install.c
View file @
68b83a8a
...
...
@@ -1120,7 +1120,7 @@ static void test_install_files_queue(void)
ok
(
ret
,
"Failed to delete INF file, error %u.
\n
"
,
GetLastError
());
}
static
unsigned
int
got_need_media
,
got_copy_error
;
static
unsigned
int
got_need_media
,
got_copy_error
,
got_start_copy
;
static
unsigned
int
testmode
;
static
UINT
WINAPI
need_media_cb
(
void
*
context
,
UINT
message
,
UINT_PTR
param1
,
UINT_PTR
param2
)
...
...
@@ -1332,6 +1332,7 @@ static UINT WINAPI need_media_newpath_cb(void *context, UINT message, UINT_PTR p
else
return
FILEOP_SKIP
;
}
else
if
(
message
==
SPFILENOTIFY_STARTCOPY
)
got_start_copy
++
;
return
SetupDefaultQueueCallbackA
(
context
,
message
,
param1
,
param2
);
}
...
...
@@ -1901,7 +1902,7 @@ static void test_need_media(void)
ok
(
delete_file
(
"dst/three.txt"
),
"Destination file should exist.
\n
"
);
testmode
=
6
;
got_need_media
=
got_copy_error
=
0
;
got_need_media
=
got_copy_error
=
got_start_copy
=
0
;
queue
=
SetupOpenFileQueue
();
ok
(
queue
!=
INVALID_HANDLE_VALUE
,
"Failed to open queue, error %#x.
\n
"
,
GetLastError
());
copy_params
.
QueueHandle
=
queue
;
...
...
@@ -1915,9 +1916,10 @@ static void test_need_media(void)
run_queue
(
queue
,
need_media_newpath_cb
);
ok
(
got_need_media
==
1
,
"Got %u callbacks.
\n
"
,
got_need_media
);
ok
(
!
got_copy_error
,
"Got %u copy errors.
\n
"
,
got_copy_error
);
ok
(
delete_file
(
"dst/one.txt"
),
"Destination file should exist.
\n
"
);
if
(
got_start_copy
)
ok
(
delete_file
(
"dst/one.txt"
),
"Destination file should exist.
\n
"
);
else
ok
(
!
file_exists
(
"dst/one.txt"
),
"Destination file should not exist.
\n
"
);
got_need_media
=
got_copy_error
=
0
;
got_need_media
=
got_copy_error
=
got_start_copy
=
0
;
queue
=
SetupOpenFileQueue
();
ok
(
queue
!=
INVALID_HANDLE_VALUE
,
"Failed to open queue, error %#x.
\n
"
,
GetLastError
());
copy_params
.
LayoutInf
=
hinf
;
...
...
@@ -1928,7 +1930,8 @@ static void test_need_media(void)
run_queue
(
queue
,
need_media_newpath_cb
);
ok
(
got_need_media
==
1
,
"Got %u callbacks.
\n
"
,
got_need_media
);
ok
(
!
got_copy_error
,
"Got %u copy errors.
\n
"
,
got_copy_error
);
ok
(
delete_file
(
"dst/one.txt"
),
"Destination file should exist.
\n
"
);
if
(
got_start_copy
)
ok
(
delete_file
(
"dst/one.txt"
),
"Destination file should exist.
\n
"
);
else
ok
(
!
file_exists
(
"dst/one.txt"
),
"Destination file should not exist.
\n
"
);
}
else
SetupCloseFileQueue
(
queue
);
...
...
@@ -1963,7 +1966,7 @@ static void test_close_queue(void)
SetupTermDefaultQueueCallback
(
context
);
}
static
unsigned
int
got_start_copy
,
start_copy_ret
;
static
unsigned
int
start_copy_ret
;
static
UINT
WINAPI
start_copy_cb
(
void
*
context
,
UINT
message
,
UINT_PTR
param1
,
UINT_PTR
param2
)
{
...
...
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