openafs/tests/common
Marc Dionne 0a528a52f5 tests: Improve failure mode for unresolvable hostname
In the case of a host where gethostbyname is unable to resolve
the hostname, afstest_BuildTestConfig() may return NULL which
can cause several tests to crash.

Add a common function to look out for this condition and use it where
appropriate.  When it occurs, the current module is skipped and
the user gets an error message that indicates the configuration
problem.

Change-Id: I7216876eb2424368f415e5759e2b95009ad055b2
Reviewed-on: http://gerrit.openafs.org/9120
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
2013-02-17 20:51:15 -08:00
..
common.h tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
config.c tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
Makefile.in tests: Tidy up loopback adapter tests 2012-10-12 18:32:17 -07:00
network.c tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
rxkad.c tests: Move token faking code to its own file 2012-04-22 06:18:19 -07:00
servers.c tests: Abstract out code for a test RPC service 2012-06-27 07:27:42 -07:00
ubik.c tests: Abstract out code to produce a Ubik client 2012-04-22 06:17:17 -07:00