google / open-vcdiff

An encoder/decoder for the VCDIFF (RFC3284) format
Apache License 2.0
186 stars 52 forks source link

"make check" fails on AIX 5.3.8 #25

Closed Steelskin closed 10 years ago

Steelskin commented 10 years ago

Original issue 25 created by openvcdiff on 2010-02-16T19:04:14.000Z:

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."