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
67e6040c
Commit
67e6040c
authored
Jun 02, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Jun 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Enable some tests and extend them to succeed on XP and 2003 SP1.
parent
9b2fe9e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
registry.c
dlls/advapi32/tests/registry.c
+11
-13
No files found.
dlls/advapi32/tests/registry.c
View file @
67e6040c
...
...
@@ -136,11 +136,11 @@ static void test_enum_value(void)
ok
(
val_count
==
2
||
val_count
==
3
,
"val_count set to %ld
\n
"
,
val_count
);
ok
(
data_count
==
7
,
"data_count set to %ld instead of 7
\n
"
,
data_count
);
ok
(
type
==
REG_SZ
,
"type %ld is not REG_SZ
\n
"
,
type
);
#if 0
/* v5.1.2600.0 (XP Home) does not touch value or data in this case */
ok( !strcmp( value, "Te" ), "value set to '%s' instead of 'Te
'\n", value );
ok( !strcmp( data, "foobar" )
, "data set to '%s' instead of 'foobar'\n", data );
#endif
/* v5.1.2600.0 (XP Home and Proffesional) does not touch value or data in this case */
ok
(
!
strcmp
(
value
,
"Te"
)
||
!
strcmp
(
value
,
"xxxxxxxxxx"
),
"value set to '%s' instead of 'Te' or 'xxxxxxxxxx
'
\n
"
,
value
);
ok
(
!
strcmp
(
data
,
"foobar"
)
||
!
strcmp
(
data
,
"xxxxxxx"
),
"data set to '%s' instead of 'foobar' or 'xxxxxxx'
\n
"
,
data
);
/* overflow empty name */
val_count
=
0
;
...
...
@@ -154,10 +154,9 @@ static void test_enum_value(void)
ok
(
data_count
==
7
,
"data_count set to %ld instead of 7
\n
"
,
data_count
);
ok
(
type
==
REG_SZ
,
"type %ld is not REG_SZ
\n
"
,
type
);
ok
(
!
strcmp
(
value
,
"xxxxxxxxxx"
),
"value set to '%s'
\n
"
,
value
);
#if 0
/* v5.1.2600.0 (XP Home) does not touch data in this case */
ok( !strcmp( data, "foobar" ), "data set to '%s' instead of 'foobar'\n", data );
#endif
/* v5.1.2600.0 (XP Home and Professional) does not touch data in this case */
ok
(
!
strcmp
(
data
,
"foobar"
)
||
!
strcmp
(
data
,
"xxxxxxx"
),
"data set to '%s' instead of 'foobar' or 'xxxxxxx'
\n
"
,
data
);
/* overflow data */
val_count
=
20
;
...
...
@@ -379,10 +378,9 @@ static void test_get_value(void)
buf
[
0
]
=
0
;
type
=
0xdeadbeef
;
size
=
sizeof
(
buf
);
ret
=
pRegGetValueA
(
hkey_main
,
NULL
,
"TP1_EXP_SZ"
,
RRF_RT_REG_SZ
,
&
type
,
buf
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret=%ld
\n
"
,
ret
);
#if 0
/* At least v5.2.3790.1830 (2003 SP1) returns the unexpanded length + 1 here. */
ok(size == strlen(expanded)+1, "strlen(expanded)=%ld size=%ld\n", strlen(expanded), size);
#endif
/* At least v5.2.3790.1830 (2003 SP1) returns the unexpanded sTestpath1 length + 1 here. */
ok
((
size
==
strlen
(
expanded
)
+
1
)
||
(
size
==
strlen
(
sTestpath1
)
+
1
),
"strlen(expanded)=%d, strlen(sTestpath1)=%d, size=%ld
\n
"
,
strlen
(
expanded
),
strlen
(
sTestpath1
),
size
);
ok
(
type
==
REG_SZ
,
"type=%ld
\n
"
,
type
);
ok
(
!
strcmp
(
expanded
,
buf
),
"expanded=
\"
%s
\"
buf=
\"
%s
\"\n
"
,
expanded
,
buf
);
...
...
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