aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-02-25 04:34:44 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-02-25 04:34:44 +0000
commitb0e34f71e6de8859edc13599caaff3ef5f8810ad (patch)
treeddbdd9db65cff750d58825e3fb81d3fd639b719e
parent79a5cc4e103210f3b7752641a9dc81e49eb287a0 (diff)
downloadvalgrind-b0e34f71e6de8859edc13599caaff3ef5f8810ad.tar.gz
Remove toobig-allocs.c -- it was unreliable and didn't test any
functionality of note. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9261 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r--massif/tests/Makefile.am1
-rw-r--r--massif/tests/toobig-allocs.stderr.exp4
-rw-r--r--massif/tests/toobig-allocs.vgtest3
-rw-r--r--memcheck/tests/Makefile.am1
-rw-r--r--memcheck/tests/toobig-allocs.stderr.exp2
-rw-r--r--memcheck/tests/toobig-allocs.vgtest2
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/toobig-allocs.c27
8 files changed, 0 insertions, 41 deletions
diff --git a/massif/tests/Makefile.am b/massif/tests/Makefile.am
index ea0d2c9fc..7b0f9445d 100644
--- a/massif/tests/Makefile.am
+++ b/massif/tests/Makefile.am
@@ -36,7 +36,6 @@ EXTRA_DIST = $(noinst_SCRIPTS) \
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
diff --git a/massif/tests/toobig-allocs.stderr.exp b/massif/tests/toobig-allocs.stderr.exp
deleted file mode 100644
index 28c2b9ee0..000000000
--- a/massif/tests/toobig-allocs.stderr.exp
+++ /dev/null
@@ -1,4 +0,0 @@
-
-Attempting too-big malloc()...
-Attempting too-big mmap()...
-
diff --git a/massif/tests/toobig-allocs.vgtest b/massif/tests/toobig-allocs.vgtest
deleted file mode 100644
index 76f4d6357..000000000
--- a/massif/tests/toobig-allocs.vgtest
+++ /dev/null
@@ -1,3 +0,0 @@
-prog: ../../tests/toobig-allocs
-vgopts: --massif-out-file=massif.out
-cleanup: rm massif.out
diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am
index 8461d9ee9..d88c071c5 100644
--- a/memcheck/tests/Makefile.am
+++ b/memcheck/tests/Makefile.am
@@ -149,7 +149,6 @@ EXTRA_DIST = $(noinst_SCRIPTS) \
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 \
diff --git a/memcheck/tests/toobig-allocs.stderr.exp b/memcheck/tests/toobig-allocs.stderr.exp
deleted file mode 100644
index 17d25e4ae..000000000
--- a/memcheck/tests/toobig-allocs.stderr.exp
+++ /dev/null
@@ -1,2 +0,0 @@
-Attempting too-big malloc()...
-Attempting too-big mmap()...
diff --git a/memcheck/tests/toobig-allocs.vgtest b/memcheck/tests/toobig-allocs.vgtest
deleted file mode 100644
index 15639a05c..000000000
--- a/memcheck/tests/toobig-allocs.vgtest
+++ /dev/null
@@ -1,2 +0,0 @@
-prog: ../../tests/toobig-allocs
-vgopts: -q
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 43d7d88a8..70fefaf12 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -16,7 +16,6 @@ EXTRA_DIST = $(noinst_SCRIPTS)
check_PROGRAMS = \
arch_test \
- toobig-allocs \
true
AM_CFLAGS += $(AM_FLAG_M3264_PRI)
diff --git a/tests/toobig-allocs.c b/tests/toobig-allocs.c
deleted file mode 100644
index 1b1d12f0e..000000000
--- a/tests/toobig-allocs.c
+++ /dev/null
@@ -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;
-}