Merge branch 'release/libmongo-client-0.1.7'
compat.h: HPUX does not have MSG_WAITALL flag

So I implemented a solution found at the source
of all knowledge, StackOverflow.

And yes, I am compiling a MongoDB client on HPUX.

Signed-off-by: Viktor Tusa <tusa@balabit.hu>
Merge pull request #20 from talien/f/hpux-msg-waitall

compat.h: HPUX does not have MSG_WAITALL flag
tests: Make prove optional

Instead of requiring prove to run the test suite, make it possible to
use a different runner. Just set the PROVE variable on the make check
commandline to a script that expects a list of test filenames, relative
to ${top_builddir}, and it will be used instead of prove.

This fixes #21.

Reported-by: Viktor Tusa <tusa@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
tests/runall: Make the runall script fail when tests fail

When a test fails, but still exits with zero (which is ok for TAP),
catch that, report the error, and exit with a non-zero value in the end.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
tests/runall: Use `` instead of $(...), because of legacy systems

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
tests/runall: Remove POSIX-ism

Apparently, the default grep on Solaris 9 does not support -q, so
instead of using that, redirect the output to /dev/null.

Reported-by: Viktor Tusa <tusa@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
tests: Add a new test for getLastError()

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
mongo-sync: When verifying a command result, verify better

When verifying a command in safe mode using
mongo_sync_cmd_get_last_error(), when determining the result of the
verification, make sure that getLastError() itself succeeded. Relying on
the returned error being NULL is not enough, as getLastError() itself
can fail too.

Reported-by: Andras Mitzki <micek@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
libtap: HP-UX does not have MAP_ANON flag for mmap.
libtap: Fix for buggy vsnprintf on HPUX.

vsnprintf() on hpux does not tolerate the first NULL parameter, so we
use a POSIX-compliant version from Glib.
Release libmongo-client 0.1.7.1

Added NEWS items for 0.1.7.1, bumped the version in configure.ac, and
updated the library version in src/Makefile.am.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Merge branch 'release/0.1.7.1' into stable