allocate_module_test fails
Closed this issue · 0 comments
GoogleCodeExporter commented
When trying to run allocate_module_test, it fails. Is this the expected
output? Are other tests expected to fail?
$ ./allocate_module_test
leak_memory_test: Starting test
Blocks allocated...
0x0804a0c8 : src/example/allocate_module.c:30
ERROR: leak_memory_test leaked 1 block(s)
leak_memory_test: Test failed.
buffer_overflow_test: Starting test
Guard block of 0x0804a100 size=4 allocated by
src/example/allocate_module.c:35 a t 0x0804a104 is corrupt
ERROR: src/example/allocate_module.c:37 Failure!
buffer_overflow_test: Test failed.
buffer_underflow_test: Starting test
Guard block of 0x0804a150 size=4 allocated by
src/example/allocate_module.c:41 a t 0x0804a14f is corrupt
ERROR: src/example/allocate_module.c:43 Failure!
buffer_underflow_test: Test failed.
3 out of 3 tests failed!
leak_memory_test
buffer_overflow_test
buffer_underflow_test
Blocks allocated...
0x0804a0c8 : src/example/allocate_module.c:35
0x0804a118 : src/example/allocate_module.c:41
Guard block of 0x0804a100 size=4 allocated by
src/example/allocate_module.c:35 a t 0x0804a104 is corrupt
ERROR: src/cmockery.c:1379 Failure!
What steps will reproduce the problem?
1. ./configure
2. make
3. ./allocate_module_test
What is the expected output? What do you see instead?
I expected no test failures. If this is an expected failure, that'd be
great to know.
What version of the product are you using? On what operating system?
This is on debian 4.1 with the following gcc -v
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Please provide any additional information below.
I have a port of cmocker to OS X that fails in this same way.
Original issue reported on code.google.com by ste...@gmail.com
on 28 Jan 2009 at 5:25