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
a5684fdf
Commit
a5684fdf
authored
Sep 24, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Sep 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix a couple failing tests in NT4.
parent
a9459498
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
om.c
dlls/ntdll/tests/om.c
+9
-4
No files found.
dlls/ntdll/tests/om.c
View file @
a5684fdf
...
...
@@ -451,16 +451,20 @@ static void test_directory(void)
pNtClose
(
dir
);
}
#define SYMLNK_TEST_CREATE_OPEN_FAILURE
(h,n,t,e
) \
#define SYMLNK_TEST_CREATE_OPEN_FAILURE
2(h,n,t,e,e2
) \
pRtlCreateUnicodeStringFromAsciiz(&str, n);\
pRtlCreateUnicodeStringFromAsciiz(&target, t);\
status = pNtCreateSymbolicLinkObject(h, SYMBOLIC_LINK_QUERY, &attr, &target);\
ok(status == e,"NtCreateSymbolicLinkObject should have failed with %s got(%08x)\n", #e, status);\
ok(status == e || status == e2, \
"NtCreateSymbolicLinkObject should have failed with %s or %s got(%08x)\n", #e, #e2, status);\
status = pNtOpenSymbolicLinkObject(h, SYMBOLIC_LINK_QUERY, &attr);\
ok(status == e,"NtOpenSymbolicLinkObject should have failed with %s got(%08x)\n", #e, status);\
ok(status == e || status == e2, \
"NtOpenSymbolicLinkObject should have failed with %s or %s got(%08x)\n", #e, #e2, status);\
pRtlFreeUnicodeString(&target);\
pRtlFreeUnicodeString(&str);
#define SYMLNK_TEST_CREATE_OPEN_FAILURE(h,n,t,e) SYMLNK_TEST_CREATE_OPEN_FAILURE2(h,n,t,e,e)
static
void
test_symboliclink
(
void
)
{
NTSTATUS
status
;
...
...
@@ -521,7 +525,8 @@ static void test_symboliclink(void)
SYMLNK_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
BaseNamedObjects
\\
"
,
"->Somewhere"
,
STATUS_OBJECT_NAME_INVALID
)
SYMLNK_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\\\
BaseNamedObjects"
,
"->Somewhere"
,
STATUS_OBJECT_NAME_INVALID
)
SYMLNK_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
BaseNamedObjects
\\\\
om.c-test"
,
"->Somewhere"
,
STATUS_OBJECT_NAME_INVALID
)
SYMLNK_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
BaseNamedObjects
\\
om.c-test
\\
"
,
"->Somewhere"
,
STATUS_OBJECT_NAME_INVALID
)
SYMLNK_TEST_CREATE_OPEN_FAILURE2
(
&
h
,
"
\\
BaseNamedObjects
\\
om.c-test
\\
"
,
"->Somewhere"
,
STATUS_OBJECT_NAME_INVALID
,
STATUS_OBJECT_PATH_NOT_FOUND
)
/* Compaund test */
...
...
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