Stub out the wmem test suite for older Glibs. This should restore

compatibility with GLIB 2.14.

svn path=/trunk/; revision=49161
This commit is contained in:
Evan Huus 2013-05-04 12:42:28 +00:00
parent 23f134d48e
commit 60fe9f1b9e
1 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,18 @@
#include "wmem_allocator_strict.h"
#include "config.h"
/* Glibs's testing functions were mostly introduced in 2.16 but Wireshark as
* a whole supports older Glibs, so if we don't have a new enough Glib then stub
* the test suite.
*/
#if !GLIB_CHECK_VERSION(2,16,0)
int
main()
{
return 0;
}
#else
#define MAX_ALLOC_SIZE (1024*64)
#define MAX_SIMULTANEOUS_ALLOCS 1024
#define CONTAINER_ITERS 10000
@ -466,6 +478,8 @@ main(int argc, char **argv)
return g_test_run();
}
#endif /* !GLIB_CHECK_VERSION(2,16,0) */
/*
* Editor modelines - http://www.wireshark.org/tools/modelines.html
*