|
From: <sv...@va...> - 2009-02-25 04:44:52
|
Author: njn
Date: 2009-02-25 04:44:45 +0000 (Wed, 25 Feb 2009)
New Revision: 9262
Log:
Merged r9261 (kill toobig-allocs) from the trunk.
Removed:
branches/DARWIN/massif/tests/toobig-allocs.stderr.exp
branches/DARWIN/massif/tests/toobig-allocs.vgtest
branches/DARWIN/memcheck/tests/toobig-allocs.stderr.exp
branches/DARWIN/memcheck/tests/toobig-allocs.vgtest
branches/DARWIN/tests/toobig-allocs.c
Modified:
branches/DARWIN/massif/tests/Makefile.am
branches/DARWIN/memcheck/tests/Makefile.am
branches/DARWIN/tests/Makefile.am
Modified: branches/DARWIN/massif/tests/Makefile.am
===================================================================
--- branches/DARWIN/massif/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
+++ branches/DARWIN/massif/tests/Makefile.am 2009-02-25 04:44:45 UTC (rev 9262)
@@ -37,7 +37,6 @@
thresholds_5_0.post.exp thresholds_5_0.stderr.exp thresholds_5_0.vgtest \
thresholds_5_10.post.exp thresholds_5_10.stderr.exp thresholds_5_10.vgtest \
thresholds_10_10.post.exp thresholds_10_10.stderr.exp thresholds_10_10.vgtest \
- toobig-allocs.stderr.exp toobig-allocs.vgtest \
zero1.post.exp zero1.stderr.exp zero1.vgtest \
zero2.post.exp zero2.stderr.exp zero2.vgtest
Deleted: branches/DARWIN/massif/tests/toobig-allocs.stderr.exp
===================================================================
--- branches/DARWIN/massif/tests/toobig-allocs.stderr.exp 2009-02-25 04:34:44 UTC (rev 9261)
+++ branches/DARWIN/massif/tests/toobig-allocs.stderr.exp 2009-02-25 04:44:45 UTC (rev 9262)
@@ -1,4 +0,0 @@
-
-Attempting too-big malloc()...
-Attempting too-big mmap()...
-
Deleted: branches/DARWIN/massif/tests/toobig-allocs.vgtest
===================================================================
--- branches/DARWIN/massif/tests/toobig-allocs.vgtest 2009-02-25 04:34:44 UTC (rev 9261)
+++ branches/DARWIN/massif/tests/toobig-allocs.vgtest 2009-02-25 04:44:45 UTC (rev 9262)
@@ -1,3 +0,0 @@
-prog: ../../tests/toobig-allocs
-vgopts: --massif-out-file=massif.out
-cleanup: rm massif.out
Modified: branches/DARWIN/memcheck/tests/Makefile.am
===================================================================
--- branches/DARWIN/memcheck/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
+++ branches/DARWIN/memcheck/tests/Makefile.am 2009-02-25 04:44:45 UTC (rev 9262)
@@ -149,7 +149,6 @@
supp2.stderr.exp supp2.vgtest \
supp.supp \
suppfree.stderr.exp suppfree.vgtest \
- toobig-allocs.stderr.exp toobig-allocs.vgtest \
trivialleak.stderr.exp trivialleak.vgtest \
unit_libcbase.stderr.exp unit_libcbase.stdout.exp unit_libcbase.vgtest \
unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
Deleted: branches/DARWIN/memcheck/tests/toobig-allocs.stderr.exp
===================================================================
--- branches/DARWIN/memcheck/tests/toobig-allocs.stderr.exp 2009-02-25 04:34:44 UTC (rev 9261)
+++ branches/DARWIN/memcheck/tests/toobig-allocs.stderr.exp 2009-02-25 04:44:45 UTC (rev 9262)
@@ -1,2 +0,0 @@
-Attempting too-big malloc()...
-Attempting too-big mmap()...
Deleted: branches/DARWIN/memcheck/tests/toobig-allocs.vgtest
===================================================================
--- branches/DARWIN/memcheck/tests/toobig-allocs.vgtest 2009-02-25 04:34:44 UTC (rev 9261)
+++ branches/DARWIN/memcheck/tests/toobig-allocs.vgtest 2009-02-25 04:44:45 UTC (rev 9262)
@@ -1,2 +0,0 @@
-prog: ../../tests/toobig-allocs
-vgopts: -q
Modified: branches/DARWIN/tests/Makefile.am
===================================================================
--- branches/DARWIN/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
+++ branches/DARWIN/tests/Makefile.am 2009-02-25 04:44:45 UTC (rev 9262)
@@ -16,7 +16,6 @@
check_PROGRAMS = \
arch_test \
- toobig-allocs \
true
AM_CFLAGS += $(AM_FLAG_M3264_PRI)
Deleted: branches/DARWIN/tests/toobig-allocs.c
===================================================================
--- branches/DARWIN/tests/toobig-allocs.c 2009-02-25 04:34:44 UTC (rev 9261)
+++ branches/DARWIN/tests/toobig-allocs.c 2009-02-25 04:44:45 UTC (rev 9262)
@@ -1,27 +0,0 @@
-#include <stdlib.h>
-#include <sys/mman.h>
-#include <stdio.h>
-
-int main(void)
-{
- void *p;
-
- // This is the biggest word-sized signed number. We use a signed number,
- // even though malloc takes an unsigned SizeT, because the "silly malloc
- // arg" checking done by memcheck treats the arg like a signed int in
- // order to detect the passing of a silly size arg like -1.
- unsigned long size = (~(0UL)) >> 1;
-
- fprintf(stderr, "Attempting too-big malloc()...\n");
- p = malloc(size); // way too big!
- if (p)
- fprintf(stderr, "huge malloc() succeeded??\n");
-
- fprintf(stderr, "Attempting too-big mmap()...\n");
- p = mmap( 0, size, PROT_READ|PROT_WRITE|PROT_EXEC,
- MAP_PRIVATE|MAP_ANON, -1, 0 );
- if (-1 != (long)p)
- fprintf(stderr, "huge mmap() succeeded??\n");
-
- return 0;
-}
|