Merge some minor regtest updates from the DARWIN branch:

- avoid using <malloc.h> where it's not necessary, because on DARWIN it's
  called <malloc/malloc.h>
- filter the output of brk2 more, which allows the .stderr.exp2 file to be
  removed.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9037
This commit is contained in:
Nicholas Nethercote 2009-01-23 00:02:07 +00:00
parent da8e9c1236
commit 4372b47de8
9 changed files with 7 additions and 15 deletions

View File

@ -1,7 +1,7 @@
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
malloc/free: in use at exit: 0 bytes in 0 blocks.
malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
malloc/free: in use at exit: ... bytes in ... blocks.
malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v

View File

@ -1,7 +0,0 @@
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
malloc/free: in use at exit: 0 bytes in 0 blocks.
malloc/free: 1 allocs, 1 frees, 24 bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v

View File

@ -1 +1,2 @@
prog: brk2
stderr_filter: filter_allocs

View File

@ -6412,8 +6412,8 @@ void set_inbuf ( void )
my_strcat(inbuf, "\n");
}
#include <stdio.h>
#include <malloc.h>
#include <assert.h>
/* For providing services. */

View File

@ -1,6 +1,6 @@
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
// Do a test comparison. By default memcheck does not use the
// expensive EQ/NE scheme as it would be too expensive. The

View File

@ -6449,8 +6449,8 @@ void set_inbuf ( void )
my_strcat(inbuf, "\n");
}
#include <stdio.h>
#include <malloc.h>
#include <assert.h>
/* For providing services. */

View File

@ -1,6 +1,5 @@
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include "valgrind.h"

View File

@ -1,6 +1,5 @@
#include <unistd.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include "valgrind.h"

View File

@ -1,6 +1,6 @@
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <assert.h>
typedef unsigned char UChar;