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
d04d2efa
Commit
d04d2efa
authored
Aug 24, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Mark some test results as broken and conform to the more recent behavior.
parent
9d688043
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
name.c
dlls/dnsapi/name.c
+0
-6
name.c
dlls/dnsapi/tests/name.c
+8
-7
No files found.
dlls/dnsapi/name.c
View file @
d04d2efa
...
...
@@ -193,8 +193,6 @@ DNS_STATUS WINAPI DnsValidateName_W( PCWSTR name, DNS_NAME_FORMAT format )
{
case
DnsNameDomain
:
{
if
(
!
(
state
&
HAS_NON_NUMERIC
)
&&
(
state
&
HAS_NUMERIC
))
return
DNS_ERROR_NUMERIC_NAME
;
if
((
state
&
HAS_EXTENDED
)
||
(
state
&
HAS_UNDERSCORE
))
return
DNS_ERROR_NON_RFC_NAME
;
if
((
state
&
HAS_SPACE
)
||
...
...
@@ -214,8 +212,6 @@ DNS_STATUS WINAPI DnsValidateName_W( PCWSTR name, DNS_NAME_FORMAT format )
}
case
DnsNameHostnameFull
:
{
if
(
!
(
state
&
HAS_NON_NUMERIC
)
&&
(
state
&
HAS_NUMERIC
))
return
DNS_ERROR_NUMERIC_NAME
;
if
((
state
&
HAS_EXTENDED
)
||
(
state
&
HAS_UNDERSCORE
))
return
DNS_ERROR_NON_RFC_NAME
;
if
((
state
&
HAS_SPACE
)
||
...
...
@@ -226,8 +222,6 @@ DNS_STATUS WINAPI DnsValidateName_W( PCWSTR name, DNS_NAME_FORMAT format )
case
DnsNameHostnameLabel
:
{
if
(
state
&
HAS_DOT
)
return
ERROR_INVALID_NAME
;
if
(
!
(
state
&
HAS_NON_NUMERIC
)
&&
(
state
&
HAS_NUMERIC
))
return
DNS_ERROR_NUMERIC_NAME
;
if
((
state
&
HAS_EXTENDED
)
||
(
state
&
HAS_UNDERSCORE
))
return
DNS_ERROR_NON_RFC_NAME
;
if
((
state
&
HAS_SPACE
)
||
...
...
dlls/dnsapi/tests/name.c
View file @
d04d2efa
...
...
@@ -32,6 +32,7 @@ static const struct
LPCSTR
name
;
DNS_NAME_FORMAT
format
;
DNS_STATUS
status
;
DNS_STATUS
status_broken
;
}
test_data
[]
=
{
...
...
@@ -47,8 +48,8 @@ test_data[] =
{
"a.*"
,
DnsNameDomain
,
DNS_ERROR_INVALID_NAME_CHAR
},
{
"a "
,
DnsNameDomain
,
DNS_ERROR_INVALID_NAME_CHAR
},
{
"a._b"
,
DnsNameDomain
,
DNS_ERROR_NON_RFC_NAME
},
{
"123"
,
DnsNameDomain
,
DNS_ERROR_NUMERIC_NAME
},
{
"123.456"
,
DnsNameDomain
,
DNS_ERROR_NUMERIC_NAME
},
{
"123"
,
DnsNameDomain
,
ERROR_SUCCESS
,
DNS_ERROR_NUMERIC_NAME
},
{
"123.456"
,
DnsNameDomain
,
ERROR_SUCCESS
,
DNS_ERROR_NUMERIC_NAME
},
{
"a.b"
,
DnsNameDomain
,
ERROR_SUCCESS
},
{
""
,
DnsNameDomainLabel
,
ERROR_INVALID_NAME
},
...
...
@@ -79,8 +80,8 @@ test_data[] =
{
"e.*"
,
DnsNameHostnameFull
,
DNS_ERROR_INVALID_NAME_CHAR
},
{
"e "
,
DnsNameHostnameFull
,
DNS_ERROR_INVALID_NAME_CHAR
},
{
"e._f"
,
DnsNameHostnameFull
,
DNS_ERROR_NON_RFC_NAME
},
{
"789"
,
DnsNameHostnameFull
,
DNS_ERROR_NUMERIC_NAME
},
{
"789.456"
,
DnsNameHostnameFull
,
DNS_ERROR_NUMERIC_NAME
},
{
"789"
,
DnsNameHostnameFull
,
ERROR_SUCCESS
,
DNS_ERROR_NUMERIC_NAME
},
{
"789.456"
,
DnsNameHostnameFull
,
ERROR_SUCCESS
,
DNS_ERROR_NUMERIC_NAME
},
{
"e.f"
,
DnsNameHostnameFull
,
ERROR_SUCCESS
},
{
""
,
DnsNameHostnameLabel
,
ERROR_INVALID_NAME
},
...
...
@@ -93,7 +94,7 @@ test_data[] =
{
"*"
,
DnsNameHostnameLabel
,
DNS_ERROR_INVALID_NAME_CHAR
},
{
"g "
,
DnsNameHostnameLabel
,
DNS_ERROR_INVALID_NAME_CHAR
},
{
"_g"
,
DnsNameHostnameLabel
,
DNS_ERROR_NON_RFC_NAME
},
{
"123"
,
DnsNameHostnameLabel
,
DNS_ERROR_NUMERIC_NAME
},
{
"123"
,
DnsNameHostnameLabel
,
ERROR_SUCCESS
,
DNS_ERROR_NUMERIC_NAME
},
{
"123.456"
,
DnsNameHostnameLabel
,
ERROR_INVALID_NAME
},
{
"g.h"
,
DnsNameHostnameLabel
,
ERROR_INVALID_NAME
},
...
...
@@ -146,8 +147,8 @@ static void test_DnsValidateName_A( void )
for
(
i
=
0
;
i
<
sizeof
(
test_data
)
/
sizeof
(
test_data
[
0
]);
i
++
)
{
status
=
DnsValidateName_A
(
test_data
[
i
].
name
,
test_data
[
i
].
format
);
ok
(
status
==
test_data
[
i
].
status
,
"%d:
\'
%s
\'
: got %d, expected %d
\n
"
,
i
,
test_data
[
i
].
name
,
status
,
test_data
[
i
].
status
);
ok
(
status
==
test_data
[
i
].
status
||
broken
(
status
==
test_data
[
i
].
status_broken
)
,
"%d:
\'
%s
\'
: got %d, expected %d
\n
"
,
i
,
test_data
[
i
].
name
,
status
,
test_data
[
i
].
status
);
}
}
...
...
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