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
e8a515c2
Commit
e8a515c2
authored
Sep 24, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Add a few more ShellExecute() file URL tests.
parent
340dee86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
shlexec.c
dlls/shell32/tests/shlexec.c
+17
-4
No files found.
dlls/shell32/tests/shlexec.c
View file @
e8a515c2
...
...
@@ -1321,22 +1321,30 @@ typedef struct
static
fileurl_tests_t
fileurl_tests
[]
=
{
{
"file:///"
,
"%s
\\
nonexistent.shlexec"
,
0
,
0x1
},
/* How many slashes does it take... */
{
"file:"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
,
0x1
},
{
"file:/"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
,
0x1
},
{
"file://"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
,
0x1
},
{
"file:///"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
,
0x1
},
{
"File:///"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
,
0x1
},
{
"file:///"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
|
USE_COLON
,
0x1
},
{
"file:///"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
|
USE_BSLASH
,
0x1
},
{
"file:////"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
,
0x1
},
{
"file://///"
,
"%s
\\
test file.shlexec"
,
0
,
0x1
},
/* Test with Windows-style paths */
{
"file:///"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
|
USE_COLON
,
0x1
},
{
"file:///"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
|
USE_BSLASH
,
0x1
},
/* Check handling of hostnames */
{
"file://localhost/"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
,
0x1
},
{
"file://localhost:80/"
,
"%s
\\
test file.shlexec"
,
0
,
0x1
},
{
"file://LocalHost/"
,
"%s
\\
test file.shlexec"
,
URL_SUCCESS
,
0x1
},
{
"file://127.0.0.1/"
,
"%s
\\
test file.shlexec"
,
0
,
0x1
},
{
"file://::1/"
,
"%s
\\
test file.shlexec"
,
0
,
0x1
},
{
"file://notahost/"
,
"%s
\\
test file.shlexec"
,
0
,
0x1
},
{
"file://www.winehq.org/"
,
"%s
\\
test file.shlexec"
,
0
,
0x1
},
/* Environment variables are not expanded in URLs */
{
"%urlprefix%"
,
"%s
\\
test file.shlexec"
,
0
,
0x1
},
{
"file:///"
,
"%s
\\
%%urlenvvar%% file.shlexec"
,
0
,
0x1
},
{
NULL
,
NULL
,
0
,
0
}
};
...
...
@@ -1357,6 +1365,8 @@ static void test_fileurl(void)
}
get_long_path_name
(
tmpdir
,
longtmpdir
,
sizeof
(
longtmpdir
)
/
sizeof
(
*
longtmpdir
));
SetEnvironmentVariable
(
"urlprefix"
,
"file:///"
);
SetEnvironmentVariable
(
"urlenvvar"
,
"test"
);
test
=
fileurl_tests
;
while
(
test
->
basename
)
...
...
@@ -1423,6 +1433,9 @@ static void test_fileurl(void)
}
test
++
;
}
SetEnvironmentVariable
(
"urlprefix"
,
NULL
);
SetEnvironmentVariable
(
"urlenvvar"
,
NULL
);
}
static
void
test_find_executable
(
void
)
...
...
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