]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove toobig-allocs.c -- it was unreliable and didn't test any
authorNicholas Nethercote <njn@valgrind.org>
Wed, 25 Feb 2009 04:34:44 +0000 (04:34 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 25 Feb 2009 04:34:44 +0000 (04:34 +0000)
functionality of note.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9261

massif/tests/Makefile.am
massif/tests/toobig-allocs.stderr.exp [deleted file]
massif/tests/toobig-allocs.vgtest [deleted file]
memcheck/tests/Makefile.am
memcheck/tests/toobig-allocs.stderr.exp [deleted file]
memcheck/tests/toobig-allocs.vgtest [deleted file]
tests/Makefile.am
tests/toobig-allocs.c [deleted file]

index ea0d2c9fcc318d0993435bc3e27f624f618bc224..7b0f9445de9950df296c95aef4e28cc7d1b6829e 100644 (file)
@@ -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 (file)
index 28c2b9e..0000000
+++ /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 (file)
index 76f4d63..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-prog: ../../tests/toobig-allocs
-vgopts: --massif-out-file=massif.out
-cleanup: rm massif.out
index 8461d9ee96c92106105c29227a86c682a1036387..d88c071c517d12b52ddd4f72cce56b42fa60c5fb 100644 (file)
@@ -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 (file)
index 17d25e4..0000000
+++ /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 (file)
index 15639a0..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-prog: ../../tests/toobig-allocs
-vgopts: -q
index 43d7d88a8a985892b38a1007ffe442b75f91692a..70fefaf12f95f675f8517c09b801eb7a6d9051bd 100644 (file)
@@ -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 (file)
index 1b1d12f..0000000
+++ /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;
-}