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
0dec906d
Commit
0dec906d
authored
Aug 24, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Accept one more estimated size.
parent
6b64e009
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
25 deletions
+23
-25
action.c
dlls/msi/tests/action.c
+23
-25
No files found.
dlls/msi/tests/action.c
View file @
0dec906d
...
...
@@ -2402,7 +2402,8 @@ static void check_reg_dword(HKEY prodkey, LPCSTR name, DWORD expected, DWORD lin
ok_
(
__FILE__
,
line
)(
val
==
expected
,
"Expected %d, got %d
\n
"
,
expected
,
val
);
}
static
void
check_reg_dword3
(
HKEY
prodkey
,
LPCSTR
name
,
DWORD
expected1
,
DWORD
expected2
,
DWORD
expected3
,
DWORD
line
)
static
void
check_reg_dword4
(
HKEY
prodkey
,
LPCSTR
name
,
DWORD
expected1
,
DWORD
expected2
,
DWORD
expected3
,
DWORD
expected4
,
DWORD
line
)
{
DWORD
val
,
size
,
type
;
LONG
res
;
...
...
@@ -2416,12 +2417,12 @@ static void check_reg_dword3(HKEY prodkey, LPCSTR name, DWORD expected1, DWORD e
return
;
}
ok_
(
__FILE__
,
line
)(
val
==
expected1
||
val
==
expected2
||
val
==
expected3
,
"Expected %d, %d or %d, got %d
\n
"
,
expected1
,
expected2
,
expected3
,
val
);
ok_
(
__FILE__
,
line
)(
val
==
expected1
||
val
==
expected2
||
val
==
expected3
||
val
==
expected4
,
"Expected %d, %d, %d or %d, got %d
\n
"
,
expected1
,
expected2
,
expected3
,
expected4
,
val
);
}
static
void
check_reg_dword
4
(
HKEY
prodkey
,
LPCSTR
name
,
DWORD
expected1
,
DWORD
expected2
,
DWORD
expected3
,
DWORD
expected4
,
DWORD
line
)
static
void
check_reg_dword
5
(
HKEY
prodkey
,
LPCSTR
name
,
DWORD
expected1
,
DWORD
expected2
,
DWORD
expected3
,
DWORD
expected4
,
DWORD
expected5
,
DWORD
line
)
{
DWORD
val
,
size
,
type
;
LONG
res
;
...
...
@@ -2435,8 +2436,9 @@ static void check_reg_dword4(HKEY prodkey, LPCSTR name, DWORD expected1, DWORD e
return
;
}
ok_
(
__FILE__
,
line
)(
val
==
expected1
||
val
==
expected2
||
val
==
expected3
||
val
==
expected4
,
"Expected %d, %d or %d or %d, got %d
\n
"
,
expected1
,
expected2
,
expected3
,
expected4
,
val
);
ok_
(
__FILE__
,
line
)(
val
==
expected1
||
val
==
expected2
||
val
==
expected3
||
val
==
expected4
||
val
==
expected5
,
"Expected %d, %d, %d, %d or %d, got %d
\n
"
,
expected1
,
expected2
,
expected3
,
expected4
,
expected5
,
val
);
}
#define CHECK_REG_STR(prodkey, name, expected) \
...
...
@@ -2467,15 +2469,11 @@ static void check_reg_dword4(HKEY prodkey, LPCSTR name, DWORD expected1, DWORD e
check_reg_dword2(prodkey, name, expected1, expected2, __LINE__); \
RegDeleteValueA(prodkey, name);
#define CHECK_REG_DWORD3(prodkey, name, expected1, expected2, expected3) \
check_reg_dword3(prodkey, name, expected1, expected2, expected3, __LINE__);
#define CHECK_DEL_REG_DWORD3(prodkey, name, expected1, expected2, expected3) \
check_reg_dword3(prodkey, name, expected1, expected2, expected3, __LINE__); \
RegDeleteValueA(prodkey, name);
#define CHECK_REG_DWORD4(prodkey, name, expected1, expected2, expected3, expected4) \
check_reg_dword4(prodkey, name, expected1, expected2, expected3, expected4, __LINE__);
#define CHECK_DEL_REG_DWORD
4(prodkey, name, expected1, expected2, expected3, expected4
) \
check_reg_dword
4(prodkey, name, expected1, expected2, expected3, expected4
, __LINE__); \
#define CHECK_DEL_REG_DWORD
5(prodkey, name, expected1, expected2, expected3, expected4 ,expected5
) \
check_reg_dword
5(prodkey, name, expected1, expected2, expected3, expected4, expected5
, __LINE__); \
RegDeleteValueA(prodkey, name);
static
void
get_date_str
(
LPSTR
date
)
...
...
@@ -2579,7 +2577,7 @@ static void test_register_product(void)
CHECK_DEL_REG_DWORD
(
hkey
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_DEL_REG_DWORD
4
(
hkey
,
"EstimatedSize"
,
12
,
-
12
,
4
,
10
);
CHECK_DEL_REG_DWORD
5
(
hkey
,
"EstimatedSize"
,
12
,
-
12
,
4
,
10
,
24
);
}
delete_key
(
hkey
,
""
,
access
);
...
...
@@ -2621,7 +2619,7 @@ static void test_register_product(void)
CHECK_DEL_REG_DWORD
(
props
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_DEL_REG_DWORD
4
(
props
,
"EstimatedSize"
,
12
,
-
12
,
4
,
10
);
CHECK_DEL_REG_DWORD
5
(
props
,
"EstimatedSize"
,
12
,
-
12
,
4
,
10
,
24
);
}
delete_key
(
props
,
""
,
access
);
...
...
@@ -2690,7 +2688,7 @@ static void test_register_product(void)
CHECK_DEL_REG_DWORD
(
hkey
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_DEL_REG_DWORD
4
(
hkey
,
"EstimatedSize"
,
12
,
-
12
,
4
,
10
);
CHECK_DEL_REG_DWORD
5
(
hkey
,
"EstimatedSize"
,
12
,
-
12
,
4
,
10
,
24
);
}
delete_key
(
hkey
,
""
,
access
);
...
...
@@ -2732,7 +2730,7 @@ static void test_register_product(void)
CHECK_DEL_REG_DWORD
(
props
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_DEL_REG_DWORD
4
(
props
,
"EstimatedSize"
,
12
,
-
12
,
4
,
10
);
CHECK_DEL_REG_DWORD
5
(
props
,
"EstimatedSize"
,
12
,
-
12
,
4
,
10
,
24
);
}
delete_key
(
props
,
""
,
access
);
...
...
@@ -3575,7 +3573,7 @@ static void test_publish(void)
CHECK_REG_DWORD
(
prodkey
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_REG_DWORD
3
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
);
CHECK_REG_DWORD
4
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
,
24
);
}
RegCloseKey
(
prodkey
);
...
...
@@ -3657,7 +3655,7 @@ static void test_publish(void)
CHECK_REG_DWORD
(
prodkey
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_REG_DWORD
3
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
);
CHECK_REG_DWORD
4
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
,
24
);
}
RegCloseKey
(
prodkey
);
...
...
@@ -3740,7 +3738,7 @@ static void test_publish(void)
CHECK_REG_DWORD
(
prodkey
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_REG_DWORD
3
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
);
CHECK_REG_DWORD
4
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
,
24
);
}
RegCloseKey
(
prodkey
);
...
...
@@ -3800,7 +3798,7 @@ static void test_publish(void)
CHECK_REG_DWORD
(
prodkey
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_REG_DWORD
3
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
);
CHECK_REG_DWORD
4
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
,
24
);
}
RegCloseKey
(
prodkey
);
...
...
@@ -3860,7 +3858,7 @@ static void test_publish(void)
CHECK_REG_DWORD
(
prodkey
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_REG_DWORD
3
(
prodkey
,
"EstimatedSize"
,
12
,
-
20
,
10
);
CHECK_REG_DWORD
4
(
prodkey
,
"EstimatedSize"
,
12
,
-
20
,
10
,
24
);
}
RegCloseKey
(
prodkey
);
...
...
@@ -3943,7 +3941,7 @@ static void test_publish(void)
CHECK_REG_DWORD
(
prodkey
,
"WindowsInstaller"
,
1
);
todo_wine
{
CHECK_REG_DWORD
3
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
);
CHECK_REG_DWORD
4
(
prodkey
,
"EstimatedSize"
,
12
,
-
12
,
10
,
24
);
}
RegCloseKey
(
prodkey
);
...
...
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