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
ee899dc5
Commit
ee899dc5
authored
Jul 09, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jul 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add tests for RtlGetCompressionWorkSpaceSize.
parent
275424e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
rtl.c
dlls/ntdll/tests/rtl.c
+47
-0
No files found.
dlls/ntdll/tests/rtl.c
View file @
ee899dc5
...
...
@@ -1685,6 +1685,52 @@ static void test_RtlCompressBuffer(void)
HeapFree
(
GetProcessHeap
(),
0
,
workspace
);
}
static
void
test_RtlGetCompressionWorkSpaceSize
(
void
)
{
ULONG
compress_workspace
,
decompress_workspace
;
NTSTATUS
status
;
if
(
!
pRtlGetCompressionWorkSpaceSize
)
{
win_skip
(
"RtlGetCompressionWorkSpaceSize is not available
\n
"
);
return
;
}
/* test invalid format / engine */
status
=
pRtlGetCompressionWorkSpaceSize
(
COMPRESSION_FORMAT_NONE
,
&
compress_workspace
,
&
decompress_workspace
);
todo_wine
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"got wrong status 0x%08x
\n
"
,
status
);
status
=
pRtlGetCompressionWorkSpaceSize
(
COMPRESSION_FORMAT_DEFAULT
,
&
compress_workspace
,
&
decompress_workspace
);
todo_wine
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"got wrong status 0x%08x
\n
"
,
status
);
status
=
pRtlGetCompressionWorkSpaceSize
(
0xFF
,
&
compress_workspace
,
&
decompress_workspace
);
todo_wine
ok
(
status
==
STATUS_UNSUPPORTED_COMPRESSION
,
"got wrong status 0x%08x
\n
"
,
status
);
/* test LZNT1 with normal and maximum compression */
compress_workspace
=
decompress_workspace
=
0xdeadbeef
;
status
=
pRtlGetCompressionWorkSpaceSize
(
COMPRESSION_FORMAT_LZNT1
,
&
compress_workspace
,
&
decompress_workspace
);
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"got wrong status 0x%08x
\n
"
,
status
);
ok
(
compress_workspace
!=
0
,
"got wrong compress_workspace %u
\n
"
,
compress_workspace
);
todo_wine
ok
(
decompress_workspace
==
0x1000
,
"got wrong decompress_workspace %u
\n
"
,
decompress_workspace
);
compress_workspace
=
decompress_workspace
=
0xdeadbeef
;
status
=
pRtlGetCompressionWorkSpaceSize
(
COMPRESSION_FORMAT_LZNT1
|
COMPRESSION_ENGINE_MAXIMUM
,
&
compress_workspace
,
&
decompress_workspace
);
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"got wrong status 0x%08x
\n
"
,
status
);
ok
(
compress_workspace
!=
0
,
"got wrong compress_workspace %u
\n
"
,
compress_workspace
);
todo_wine
ok
(
decompress_workspace
==
0x1000
,
"got wrong decompress_workspace %u
\n
"
,
decompress_workspace
);
}
START_TEST
(
rtl
)
{
InitFunctionPtrs
();
...
...
@@ -1712,4 +1758,5 @@ START_TEST(rtl)
test_LdrAddRefDll
();
test_LdrLockLoaderLock
();
test_RtlCompressBuffer
();
test_RtlGetCompressionWorkSpaceSize
();
}
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