mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 13:36:39 +00:00
tests: remove unused valgrind stuff
Code was also checking the wrong define anyway.
This commit is contained in:
parent
accde6ea16
commit
65ed511c5e
3 changed files with 0 additions and 46 deletions
|
@ -24,12 +24,6 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_VALGRIND_H
|
|
||||||
# include <valgrind/valgrind.h>
|
|
||||||
#else
|
|
||||||
# define RUNNING_ON_VALGRIND FALSE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
GST_START_TEST (test_subbuffer)
|
GST_START_TEST (test_subbuffer)
|
||||||
|
@ -466,20 +460,6 @@ GST_START_TEST (test_try_new_and_alloc)
|
||||||
gst_buffer_unmap (buf, &info);
|
gst_buffer_unmap (buf, &info);
|
||||||
|
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* Disabled this part of the test, because it happily succeeds on 64-bit
|
|
||||||
* machines that have enough memory+swap, because the address space is large
|
|
||||||
* enough. There's not really any way to test the failure case except by
|
|
||||||
* allocating chunks of memory until it fails, which would suck. */
|
|
||||||
|
|
||||||
/* now this better fail (don't run in valgrind, it will abort
|
|
||||||
* or warn when passing silly arguments to malloc) */
|
|
||||||
if (!RUNNING_ON_VALGRIND) {
|
|
||||||
buf = gst_buffer_new_and_alloc ((guint) - 1);
|
|
||||||
fail_unless (buf == NULL);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
|
@ -24,12 +24,6 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_VALGRIND_H
|
|
||||||
# include <valgrind/valgrind.h>
|
|
||||||
#else
|
|
||||||
# define RUNNING_ON_VALGRIND FALSE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
GST_START_TEST (test_submemory)
|
GST_START_TEST (test_submemory)
|
||||||
|
@ -271,20 +265,6 @@ GST_START_TEST (test_try_new_and_alloc)
|
||||||
gst_memory_unmap (mem, &info);
|
gst_memory_unmap (mem, &info);
|
||||||
|
|
||||||
gst_memory_unref (mem);
|
gst_memory_unref (mem);
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* Disabled this part of the test, because it happily succeeds on 64-bit
|
|
||||||
* machines that have enough memory+swap, because the address space is large
|
|
||||||
* enough. There's not really any way to test the failure case except by
|
|
||||||
* allocating chunks of memory until it fails, which would suck. */
|
|
||||||
|
|
||||||
/* now this better fail (don't run in valgrind, it will abort
|
|
||||||
* or warn when passing silly arguments to malloc) */
|
|
||||||
if (!RUNNING_ON_VALGRIND) {
|
|
||||||
mem = gst_allocator_alloc (NULL, (guint) - 1, 0);
|
|
||||||
fail_unless (mem == NULL);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
|
@ -24,12 +24,6 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_VALGRIND_H
|
|
||||||
# include <valgrind/valgrind.h>
|
|
||||||
#else
|
|
||||||
# define RUNNING_ON_VALGRIND FALSE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
/* test metadata for PTS/DTS and duration */
|
/* test metadata for PTS/DTS and duration */
|
||||||
|
|
Loading…
Reference in a new issue