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
941d69e5
Commit
941d69e5
authored
Dec 02, 2009
by
Stefan Leichter
Committed by
Alexandre Julliard
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Use separate directory for SetupGetInfFileListW.
parent
f79cd33f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
install.c
dlls/setupapi/tests/install.c
+24
-1
No files found.
dlls/setupapi/tests/install.c
View file @
941d69e5
...
...
@@ -478,6 +478,7 @@ static void test_inffilelist(void)
"Signature=
\"
$Chicago$
\"
"
;
WCHAR
*
p
,
*
ptr
;
char
dirA
[
MAX_PATH
];
WCHAR
dir
[
MAX_PATH
]
=
{
0
};
WCHAR
buffer
[
MAX_PATH
]
=
{
0
};
DWORD
expected
,
outsize
;
...
...
@@ -510,9 +511,29 @@ static void test_inffilelist(void)
todo_wine
ok
(
!
ret
,
"expected SetupGetInfFileListW to fail!
\n
"
);
/* create a private directory, the temp directory may contain some
* inf files left over from old installations
*/
if
(
!
GetTempFileNameA
(
CURR_DIR
,
"inftest"
,
1
,
dirA
))
{
win_skip
(
"GetTempFileNameA failed with error %d
\n
"
,
GetLastError
());
return
;
}
if
(
!
CreateDirectoryA
(
dirA
,
NULL
))
{
win_skip
(
"CreateDirectoryA failed with error %d
\n
"
,
GetLastError
());
return
;
}
if
(
!
SetCurrentDirectoryA
(
dirA
))
{
win_skip
(
"SetCurrentDirectoryA failed with error %d
\n
"
,
GetLastError
());
RemoveDirectoryA
(
dirA
);
return
;
}
MultiByteToWideChar
(
CP_ACP
,
0
,
dirA
,
-
1
,
dir
,
MAX_PATH
);
/* check a not existing directory
*/
MultiByteToWideChar
(
CP_ACP
,
0
,
CURR_DIR
,
-
1
,
dir
,
MAX_PATH
);
ptr
=
dir
+
lstrlenW
(
dir
);
MultiByteToWideChar
(
CP_ACP
,
0
,
"
\\
not_existent"
,
-
1
,
ptr
,
MAX_PATH
-
lstrlenW
(
dir
));
outsize
=
0xffffffff
;
...
...
@@ -569,6 +590,8 @@ static void test_inffilelist(void)
DeleteFile
(
inffile
);
DeleteFile
(
inffile2
);
DeleteFile
(
invalid_inf
);
SetCurrentDirectoryA
(
CURR_DIR
);
RemoveDirectoryA
(
dirA
);
}
START_TEST
(
install
)
...
...
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