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
4e360e8d
Commit
4e360e8d
authored
Sep 05, 2022
by
Robert Wilhelm
Committed by
Alexandre Julliard
Sep 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Test whether IFolder_get_Path() returns an absolute path.
parent
28efff38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
filesystem.c
dlls/scrrun/tests/filesystem.c
+20
-1
No files found.
dlls/scrrun/tests/filesystem.c
View file @
4e360e8d
...
...
@@ -27,6 +27,7 @@
#include "olectl.h"
#include "oleauto.h"
#include "dispex.h"
#include "shlwapi.h"
#include "wine/test.h"
...
...
@@ -927,7 +928,9 @@ static void test_BuildPath(void)
static
void
test_GetFolder
(
void
)
{
WCHAR
buffW
[
MAX_PATH
];
static
const
WCHAR
dir
[]
=
L"test_dir"
;
WCHAR
buffW
[
MAX_PATH
],
temp_path
[
MAX_PATH
],
prev_path
[
MAX_PATH
];
IFolder
*
folder
;
HRESULT
hr
;
BSTR
str
;
...
...
@@ -959,6 +962,22 @@ static void test_GetFolder(void)
SysFreeString
(
str
);
test_provideclassinfo
(
folder
,
&
CLSID_Folder
);
IFolder_Release
(
folder
);
GetCurrentDirectoryW
(
MAX_PATH
,
prev_path
);
GetTempPathW
(
MAX_PATH
,
temp_path
);
SetCurrentDirectoryW
(
temp_path
);
ok
(
CreateDirectoryW
(
dir
,
NULL
),
"CreateDirectory(%s) failed
\n
"
,
wine_dbgstr_w
(
dir
));
str
=
SysAllocString
(
dir
);
hr
=
IFileSystem3_GetFolder
(
fs3
,
str
,
&
folder
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
SysFreeString
(
str
);
hr
=
IFolder_get_Path
(
folder
,
&
str
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
!
PathIsRelativeW
(
str
),
"path %s is relative.
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IFolder_Release
(
folder
);
RemoveDirectoryW
(
dir
);
SetCurrentDirectoryW
(
prev_path
);
}
static
void
_test_clone
(
IEnumVARIANT
*
enumvar
,
BOOL
position_inherited
,
LONG
count
,
int
line
)
...
...
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