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
bb6d87f6
Commit
bb6d87f6
authored
Mar 11, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Heap tests cleanup.
parent
90c42fed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
heap.c
dlls/msvcrt/tests/heap.c
+10
-9
No files found.
dlls/msvcrt/tests/heap.c
View file @
bb6d87f6
...
...
@@ -18,14 +18,17 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "wine/test.h"
#include <stdlib.h>
#include "wine/test.h"
static
void
test_realloc
(
void
)
START_TEST
(
heap
)
{
void
*
mem
=
NULL
;
void
*
mem
;
mem
=
realloc
(
mem
,
10
);
mem
=
malloc
(
0
);
ok
(
mem
!=
NULL
,
"memory not allocated for size 0
\n
"
);
mem
=
realloc
(
NULL
,
10
);
ok
(
mem
!=
NULL
,
"memory not allocated
\n
"
);
mem
=
realloc
(
mem
,
20
);
...
...
@@ -33,9 +36,7 @@ static void test_realloc( void )
mem
=
realloc
(
mem
,
0
);
ok
(
mem
==
NULL
,
"memory not freed
\n
"
);
}
START_TEST
(
heap
)
{
test_realloc
();
mem
=
realloc
(
NULL
,
0
);
ok
(
mem
!=
NULL
,
"memory not (re)allocated for size 0
\n
"
);
}
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