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
2b5888cc
Commit
2b5888cc
authored
Oct 14, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi/tests: Compile with -D__WINESRC__.
parent
98c64a4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
Makefile.in
dlls/dnsapi/tests/Makefile.in
+0
-1
record.c
dlls/dnsapi/tests/record.c
+10
-10
No files found.
dlls/dnsapi/tests/Makefile.in
View file @
2b5888cc
TESTDLL
=
dnsapi.dll
TESTDLL
=
dnsapi.dll
IMPORTS
=
dnsapi
IMPORTS
=
dnsapi
EXTRADEFS
=
-U__WINESRC__
-DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
C_SRCS
=
\
name.c
\
name.c
\
...
...
dlls/dnsapi/tests/record.c
View file @
2b5888cc
...
@@ -28,12 +28,12 @@
...
@@ -28,12 +28,12 @@
#include "wine/test.h"
#include "wine/test.h"
static
char
name1
[]
=
"localhost"
;
static
WCHAR
name1
[]
=
{
'l'
,
'o'
,
'c'
,
'a'
,
'l'
,
'h'
,
'o'
,
's'
,
't'
,
0
}
;
static
char
name2
[]
=
"LOCALHOST"
;
static
WCHAR
name2
[]
=
{
'L'
,
'O'
,
'C'
,
'A'
,
'L'
,
'H'
,
'O'
,
'S'
,
'T'
,
0
}
;
static
DNS_RECORD
A
r1
=
{
NULL
,
name1
,
DNS_TYPE_A
,
sizeof
(
DNS_A_DATA
),
{
0
},
1200
,
0
,
{
{
0xffffffff
}
}
};
static
DNS_RECORD
W
r1
=
{
NULL
,
name1
,
DNS_TYPE_A
,
sizeof
(
DNS_A_DATA
),
{
0
},
1200
,
0
,
{
{
0xffffffff
}
}
};
static
DNS_RECORD
A
r2
=
{
NULL
,
name1
,
DNS_TYPE_A
,
sizeof
(
DNS_A_DATA
),
{
0
},
1200
,
0
,
{
{
0xffffffff
}
}
};
static
DNS_RECORD
W
r2
=
{
NULL
,
name1
,
DNS_TYPE_A
,
sizeof
(
DNS_A_DATA
),
{
0
},
1200
,
0
,
{
{
0xffffffff
}
}
};
static
DNS_RECORD
A
r3
=
{
NULL
,
name1
,
DNS_TYPE_A
,
sizeof
(
DNS_A_DATA
),
{
0
},
1200
,
0
,
{
{
0xffffffff
}
}
};
static
DNS_RECORD
W
r3
=
{
NULL
,
name1
,
DNS_TYPE_A
,
sizeof
(
DNS_A_DATA
),
{
0
},
1200
,
0
,
{
{
0xffffffff
}
}
};
static
void
test_DnsRecordCompare
(
void
)
static
void
test_DnsRecordCompare
(
void
)
{
{
...
@@ -43,10 +43,10 @@ static void test_DnsRecordCompare( void )
...
@@ -43,10 +43,10 @@ static void test_DnsRecordCompare( void )
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
r2
.
Flags
.
S
.
CharSet
=
DnsCharSetUnicode
;
r2
.
Flags
.
S
.
CharSet
=
DnsCharSetUnicode
;
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
FALSE
,
"succeed
ed unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"fail
ed unexpectedly
\n
"
);
r2
.
Flags
.
S
.
CharSet
=
DnsCharSetAnsi
;
r2
.
Flags
.
S
.
CharSet
=
DnsCharSetAnsi
;
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
FALSE
,
"succeed
ed unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"fail
ed unexpectedly
\n
"
);
r1
.
Flags
.
S
.
CharSet
=
DnsCharSetAnsi
;
r1
.
Flags
.
S
.
CharSet
=
DnsCharSetAnsi
;
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
...
@@ -60,8 +60,8 @@ static void test_DnsRecordCompare( void )
...
@@ -60,8 +60,8 @@ static void test_DnsRecordCompare( void )
static
void
test_DnsRecordSetCompare
(
void
)
static
void
test_DnsRecordSetCompare
(
void
)
{
{
DNS_RECORD
*
diff1
;
DNS_RECORD
W
*
diff1
;
DNS_RECORD
*
diff2
;
DNS_RECORD
W
*
diff2
;
DNS_RRSET
rr1
,
rr2
;
DNS_RRSET
rr1
,
rr2
;
r1
.
Flags
.
DW
=
0x2019
;
r1
.
Flags
.
DW
=
0x2019
;
...
@@ -120,7 +120,7 @@ static void test_DnsRecordSetCompare( void )
...
@@ -120,7 +120,7 @@ static void test_DnsRecordSetCompare( void )
static
void
test_DnsRecordSetDetach
(
void
)
static
void
test_DnsRecordSetDetach
(
void
)
{
{
DNS_RRSET
rr
;
DNS_RRSET
rr
;
DNS_RECORD
A
*
r
,
*
s
;
DNS_RECORD
W
*
r
,
*
s
;
DNS_RRSET_INIT
(
rr
);
DNS_RRSET_INIT
(
rr
);
DNS_RRSET_ADD
(
rr
,
&
r1
);
DNS_RRSET_ADD
(
rr
,
&
r1
);
...
...
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