Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fc7a8547
Commit
fc7a8547
authored
May 04, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
May 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add a trailing '\n' to ok() calls.
parent
dddd1f02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
heap.c
dlls/kernel32/tests/heap.c
+8
-8
No files found.
dlls/kernel32/tests/heap.c
View file @
fc7a8547
...
...
@@ -38,23 +38,23 @@ static void test_sized_HeapAlloc(int nbytes)
{
int
success
;
char
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
nbytes
);
ok
(
buf
!=
NULL
,
"allocate failed"
);
ok
(
buf
[
0
]
==
0
,
"buffer not zeroed"
);
ok
(
buf
!=
NULL
,
"allocate failed
\n
"
);
ok
(
buf
[
0
]
==
0
,
"buffer not zeroed
\n
"
);
success
=
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
ok
(
success
,
"free failed"
);
ok
(
success
,
"free failed
\n
"
);
}
static
void
test_sized_HeapReAlloc
(
int
nbytes1
,
int
nbytes2
)
{
int
success
;
char
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
nbytes1
);
ok
(
buf
!=
NULL
,
"allocate failed"
);
ok
(
buf
[
0
]
==
0
,
"buffer not zeroed"
);
ok
(
buf
!=
NULL
,
"allocate failed
\n
"
);
ok
(
buf
[
0
]
==
0
,
"buffer not zeroed
\n
"
);
buf
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
buf
,
nbytes2
);
ok
(
buf
!=
NULL
,
"reallocate failed"
);
ok
(
buf
[
nbytes2
-
1
]
==
0
,
"buffer not zeroed"
);
ok
(
buf
!=
NULL
,
"reallocate failed
\n
"
);
ok
(
buf
[
nbytes2
-
1
]
==
0
,
"buffer not zeroed
\n
"
);
success
=
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
ok
(
success
,
"free failed"
);
ok
(
success
,
"free failed
\n
"
);
}
static
void
test_heap
(
void
)
...
...
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