ivankosenko / open-vcdiff

Automatically exported from code.google.com/p/open-vcdiff
Apache License 2.0
0 stars 0 forks source link

"make check" fails on AIX 5.3.8 #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the source tarball for open-vcdiff to a machine running AIX 5.3.8.
2. Run ./configure && make && make check.

What is the expected output? What do you see instead?

The "make check" output should show zero failures, but ends with the
following (see attached file):
======================================
3 of 18 tests failed
Please report to opensource@google.com
======================================

The specific unit test failures are as follows:
1. BlockContentsMatchIsAsFastAsBlockCompareWords in blockhash_test.cc
fails.  This means that the label VCDIFF_USE_BLOCK_COMPARE_WORDS should be
defined for this compiler and architecture in order to improve performance.
 Currently the label is defined only when the compiler is gcc and the
architecture is x86.
2. vcdecoder5_test throws an unhandled exception "std::bad_alloc" during
the test VCDiffLargeTargetTest.Decode.  That test allocates, frees, and
reallocates chunks of 64MB of memory, and should have a maximum of two such
chunks allocated at any given moment.  In this case, it's possible that the
ulimit settings on the build machine do not allow a user process to
allocate 128MB of virtual memory.
3. Test 15 in vcdiff_test.sh fails: "vcdiff with /dev/kmem as dictionary
should fail, but succeeded."

Original issue reported on code.google.com by openvcd...@gmail.com on 16 Feb 2010 at 7:04

Attachments:

GoogleCodeExporter commented 9 years ago
Failure (1.) suggests that VCDIFF_USE_BLOCK_COMPARE_WORDS should be defined when
using gcc for the PowerPC architecture, as well as for x86.

Failure (2.) was indeed due to ulimit settings.  The user had a limit of 32MB on
virtual memory allocation.  When he increased this limit, the test passed.

Failure (3.) came about because the user had permission to read /dev/kmem.  
This is
not normally the case for AIX.

Original comment by openvcd...@gmail.com on 17 Feb 2010 at 7:09

GoogleCodeExporter commented 9 years ago
Fixed in open-vcdiff version 0.8.

Original comment by openvcd...@gmail.com on 4 Aug 2010 at 6:46