projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Make test_per_application_leaks more robust
[lttng-tools.git]
/
tests
/
regression
/
ust
/
libc-wrapper
/
prog.c
diff --git
a/tests/regression/ust/libc-wrapper/prog.c
b/tests/regression/ust/libc-wrapper/prog.c
index 999d880a3dc744fe029ce30638d55b42de7518e6..882dbb82f63097641d852b1ae54c361c95277de4 100644
(file)
--- a/
tests/regression/ust/libc-wrapper/prog.c
+++ b/
tests/regression/ust/libc-wrapper/prog.c
@@
-7,19
+7,19
@@
/* This program is used to test malloc instrumentation with libustinstr-malloc.
*/
/* This program is used to test malloc instrumentation with libustinstr-malloc.
*/
-#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
+#include <string.h>
#define N_ITER 1000
#define N_ITER 1000
-int main(
int argc, char **argv
)
+int main(
void
)
{
int i;
const char teststr[] = "Hello World! 1234567890abc";
void *ptrs[N_ITER];
for (i = 0; i < N_ITER; i++) {
{
int i;
const char teststr[] = "Hello World! 1234567890abc";
void *ptrs[N_ITER];
for (i = 0; i < N_ITER; i++) {
- ptrs[i] = malloc(i
+
1000);
+ ptrs[i] = malloc(i
+
1000);
if (!ptrs[i]) {
exit(EXIT_FAILURE);
}
if (!ptrs[i]) {
exit(EXIT_FAILURE);
}
This page took
0.024877 seconds
and
4
git commands to generate.