openafs/tests/auth
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
..
.gitignore auth: local realms configuration 2012-04-16 10:31:04 -07:00
authcon-t.c tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
KeyFile tests: Add tests for afsconf_'s key functions 2010-12-27 14:39:37 -08:00
keys-t.c tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
Makefile.in tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
realms-t.c tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
superuser-t.c tests: Improve failure mode for unresolvable hostname 2013-02-17 20:51:15 -08:00
test.xg auth: Add more tests and resulting fixes to userok 2010-12-26 10:58:49 -08:00
writekeyfile.c tests: Add tests for afsconf_'s key functions 2010-12-27 14:39:37 -08:00