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
e091c12b
Commit
e091c12b
authored
Jun 08, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix the process title tests to actually test something.
parent
e1fd4390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
process.c
dlls/kernel32/tests/process.c
+16
-8
No files found.
dlls/kernel32/tests/process.c
View file @
e091c12b
...
@@ -527,6 +527,7 @@ static void test_Startup(void)
...
@@ -527,6 +527,7 @@ static void test_Startup(void)
char
buffer
[
MAX_PATH
];
char
buffer
[
MAX_PATH
];
PROCESS_INFORMATION
info
;
PROCESS_INFORMATION
info
;
STARTUPINFOA
startup
,
si
;
STARTUPINFOA
startup
,
si
;
char
*
result
;
static
CHAR
title
[]
=
"I'm the title string"
,
static
CHAR
title
[]
=
"I'm the title string"
,
desktop
[]
=
"winsta0
\\
default"
,
desktop
[]
=
"winsta0
\\
default"
,
empty
[]
=
""
;
empty
[]
=
""
;
...
@@ -699,8 +700,9 @@ static void test_Startup(void)
...
@@ -699,8 +700,9 @@ static void test_Startup(void)
okChildInt
(
"StartupInfoA"
,
"cb"
,
startup
.
cb
);
okChildInt
(
"StartupInfoA"
,
"cb"
,
startup
.
cb
);
okChildString
(
"StartupInfoA"
,
"lpDesktop"
,
startup
.
lpDesktop
);
okChildString
(
"StartupInfoA"
,
"lpDesktop"
,
startup
.
lpDesktop
);
ok
(
startup
.
lpTitle
==
NULL
||
!
strcmp
(
startup
.
lpTitle
,
selfname
),
result
=
getChildString
(
"StartupInfoA"
,
"lpTitle"
);
"StartupInfoA:lpTitle expected '%s' or null, got '%s'
\n
"
,
selfname
,
startup
.
lpTitle
);
todo_wine
ok
(
broken
(
!
result
)
||
(
result
&&
!
strCmp
(
result
,
selfname
,
0
)),
"expected '%s' or null, got '%s'
\n
"
,
selfname
,
result
);
okChildInt
(
"StartupInfoA"
,
"dwX"
,
startup
.
dwX
);
okChildInt
(
"StartupInfoA"
,
"dwX"
,
startup
.
dwX
);
okChildInt
(
"StartupInfoA"
,
"dwY"
,
startup
.
dwY
);
okChildInt
(
"StartupInfoA"
,
"dwY"
,
startup
.
dwY
);
okChildInt
(
"StartupInfoA"
,
"dwXSize"
,
startup
.
dwXSize
);
okChildInt
(
"StartupInfoA"
,
"dwXSize"
,
startup
.
dwXSize
);
...
@@ -1185,6 +1187,7 @@ static void test_SuspendFlag(void)
...
@@ -1185,6 +1187,7 @@ static void test_SuspendFlag(void)
PROCESS_INFORMATION
info
;
PROCESS_INFORMATION
info
;
STARTUPINFOA
startup
,
us
;
STARTUPINFOA
startup
,
us
;
DWORD
exit_status
;
DWORD
exit_status
;
char
*
result
;
/* let's start simplistic */
/* let's start simplistic */
memset
(
&
startup
,
0
,
sizeof
(
startup
));
memset
(
&
startup
,
0
,
sizeof
(
startup
));
...
@@ -1210,8 +1213,9 @@ static void test_SuspendFlag(void)
...
@@ -1210,8 +1213,9 @@ static void test_SuspendFlag(void)
okChildInt
(
"StartupInfoA"
,
"cb"
,
startup
.
cb
);
okChildInt
(
"StartupInfoA"
,
"cb"
,
startup
.
cb
);
okChildString
(
"StartupInfoA"
,
"lpDesktop"
,
us
.
lpDesktop
);
okChildString
(
"StartupInfoA"
,
"lpDesktop"
,
us
.
lpDesktop
);
ok
(
startup
.
lpTitle
==
NULL
||
!
strcmp
(
startup
.
lpTitle
,
selfname
),
result
=
getChildString
(
"StartupInfoA"
,
"lpTitle"
);
"StartupInfoA:lpTitle expected '%s' or null, got '%s'
\n
"
,
selfname
,
startup
.
lpTitle
);
todo_wine
ok
(
broken
(
!
result
)
||
(
result
&&
!
strCmp
(
result
,
selfname
,
0
)),
"expected '%s' or null, got '%s'
\n
"
,
selfname
,
result
);
okChildInt
(
"StartupInfoA"
,
"dwX"
,
startup
.
dwX
);
okChildInt
(
"StartupInfoA"
,
"dwX"
,
startup
.
dwX
);
okChildInt
(
"StartupInfoA"
,
"dwY"
,
startup
.
dwY
);
okChildInt
(
"StartupInfoA"
,
"dwY"
,
startup
.
dwY
);
okChildInt
(
"StartupInfoA"
,
"dwXSize"
,
startup
.
dwXSize
);
okChildInt
(
"StartupInfoA"
,
"dwXSize"
,
startup
.
dwXSize
);
...
@@ -1233,6 +1237,7 @@ static void test_DebuggingFlag(void)
...
@@ -1233,6 +1237,7 @@ static void test_DebuggingFlag(void)
STARTUPINFOA
startup
,
us
;
STARTUPINFOA
startup
,
us
;
DEBUG_EVENT
de
;
DEBUG_EVENT
de
;
unsigned
dbg
=
0
;
unsigned
dbg
=
0
;
char
*
result
;
/* let's start simplistic */
/* let's start simplistic */
memset
(
&
startup
,
0
,
sizeof
(
startup
));
memset
(
&
startup
,
0
,
sizeof
(
startup
));
...
@@ -1270,8 +1275,9 @@ static void test_DebuggingFlag(void)
...
@@ -1270,8 +1275,9 @@ static void test_DebuggingFlag(void)
okChildInt
(
"StartupInfoA"
,
"cb"
,
startup
.
cb
);
okChildInt
(
"StartupInfoA"
,
"cb"
,
startup
.
cb
);
okChildString
(
"StartupInfoA"
,
"lpDesktop"
,
us
.
lpDesktop
);
okChildString
(
"StartupInfoA"
,
"lpDesktop"
,
us
.
lpDesktop
);
ok
(
startup
.
lpTitle
==
NULL
||
!
strcmp
(
startup
.
lpTitle
,
selfname
),
result
=
getChildString
(
"StartupInfoA"
,
"lpTitle"
);
"StartupInfoA:lpTitle expected '%s' or null, got '%s'
\n
"
,
selfname
,
startup
.
lpTitle
);
todo_wine
ok
(
broken
(
!
result
)
||
(
result
&&
!
strCmp
(
result
,
selfname
,
0
)),
"expected '%s' or null, got '%s'
\n
"
,
selfname
,
result
);
okChildInt
(
"StartupInfoA"
,
"dwX"
,
startup
.
dwX
);
okChildInt
(
"StartupInfoA"
,
"dwX"
,
startup
.
dwX
);
okChildInt
(
"StartupInfoA"
,
"dwY"
,
startup
.
dwY
);
okChildInt
(
"StartupInfoA"
,
"dwY"
,
startup
.
dwY
);
okChildInt
(
"StartupInfoA"
,
"dwXSize"
,
startup
.
dwXSize
);
okChildInt
(
"StartupInfoA"
,
"dwXSize"
,
startup
.
dwXSize
);
...
@@ -1304,6 +1310,7 @@ static void test_Console(void)
...
@@ -1304,6 +1310,7 @@ static void test_Console(void)
const
char
*
msg
=
"This is a std-handle inheritance test."
;
const
char
*
msg
=
"This is a std-handle inheritance test."
;
unsigned
msg_len
;
unsigned
msg_len
;
BOOL
run_tests
=
TRUE
;
BOOL
run_tests
=
TRUE
;
char
*
result
;
memset
(
&
startup
,
0
,
sizeof
(
startup
));
memset
(
&
startup
,
0
,
sizeof
(
startup
));
startup
.
cb
=
sizeof
(
startup
);
startup
.
cb
=
sizeof
(
startup
);
...
@@ -1381,8 +1388,9 @@ static void test_Console(void)
...
@@ -1381,8 +1388,9 @@ static void test_Console(void)
okChildInt
(
"StartupInfoA"
,
"cb"
,
startup
.
cb
);
okChildInt
(
"StartupInfoA"
,
"cb"
,
startup
.
cb
);
okChildString
(
"StartupInfoA"
,
"lpDesktop"
,
us
.
lpDesktop
);
okChildString
(
"StartupInfoA"
,
"lpDesktop"
,
us
.
lpDesktop
);
ok
(
startup
.
lpTitle
==
NULL
||
!
strcmp
(
startup
.
lpTitle
,
selfname
),
result
=
getChildString
(
"StartupInfoA"
,
"lpTitle"
);
"StartupInfoA:lpTitle expected '%s' or null, got '%s'
\n
"
,
selfname
,
startup
.
lpTitle
);
todo_wine
ok
(
broken
(
!
result
)
||
(
result
&&
!
strCmp
(
result
,
selfname
,
0
)),
"expected '%s' or null, got '%s'
\n
"
,
selfname
,
result
);
okChildInt
(
"StartupInfoA"
,
"dwX"
,
startup
.
dwX
);
okChildInt
(
"StartupInfoA"
,
"dwX"
,
startup
.
dwX
);
okChildInt
(
"StartupInfoA"
,
"dwY"
,
startup
.
dwY
);
okChildInt
(
"StartupInfoA"
,
"dwY"
,
startup
.
dwY
);
okChildInt
(
"StartupInfoA"
,
"dwXSize"
,
startup
.
dwXSize
);
okChildInt
(
"StartupInfoA"
,
"dwXSize"
,
startup
.
dwXSize
);
...
...
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