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
d350af24
Commit
d350af24
authored
Mar 30, 2023
by
Hugh McMaster
Committed by
Alexandre Julliard
Apr 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test GetConsoleOriginalTitleW() with an empty title.
parent
30f1c1be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
console.c
dlls/kernel32/tests/console.c
+25
-3
No files found.
dlls/kernel32/tests/console.c
View file @
d350af24
...
...
@@ -4283,6 +4283,15 @@ static void test_GetConsoleOriginalTitleW(void)
ok
(
ret
==
title_len
,
"got %lu, expected %lu
\n
"
,
ret
,
title_len
);
}
static
void
test_GetConsoleOriginalTitleW_empty
(
void
)
{
WCHAR
buf
[
64
];
DWORD
ret
;
ret
=
GetConsoleOriginalTitleW
(
buf
,
ARRAY_SIZE
(
buf
));
ok
(
!
ret
,
"GetConsoleOriginalTitleW failed: %lu
\n
"
,
GetLastError
());
}
static
void
test_GetConsoleOriginalTitle
(
void
)
{
STARTUPINFOA
si
=
{
sizeof
(
si
)
};
...
...
@@ -4299,6 +4308,14 @@ static void test_GetConsoleOriginalTitle(void)
CloseHandle
(
info
.
hThread
);
wait_child_process
(
info
.
hProcess
);
CloseHandle
(
info
.
hProcess
);
strcat
(
buf
,
" empty"
);
title
[
0
]
=
0
;
ret
=
CreateProcessA
(
NULL
,
buf
,
NULL
,
NULL
,
TRUE
,
CREATE_NEW_CONSOLE
,
NULL
,
NULL
,
&
si
,
&
info
);
ok
(
ret
,
"CreateProcess failed: %lu
\n
"
,
GetLastError
());
CloseHandle
(
info
.
hThread
);
wait_child_process
(
info
.
hProcess
);
CloseHandle
(
info
.
hProcess
);
}
static
void
test_GetConsoleTitleA
(
void
)
...
...
@@ -4944,10 +4961,15 @@ START_TEST(console)
ExitProcess
(
exit_code
);
}
if
(
argc
=
=
3
&&
!
strcmp
(
argv
[
2
],
"title_test"
))
if
(
argc
>
=
3
&&
!
strcmp
(
argv
[
2
],
"title_test"
))
{
test_GetConsoleOriginalTitleA
();
test_GetConsoleOriginalTitleW
();
if
(
argc
==
3
)
{
test_GetConsoleOriginalTitleA
();
test_GetConsoleOriginalTitleW
();
}
else
test_GetConsoleOriginalTitleW_empty
();
return
;
}
...
...
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