tests: Use usleep instead of nanosleep 44/14244/5
authorCheyenne Wills <cwills@sinenomine.net>
Tue, 16 Jun 2020 21:20:20 +0000 (15:20 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 19 Jun 2020 14:54:13 +0000 (10:54 -0400)
commit22a66e7b7e1d73437a8c26c2a1b45bc4ef214e77
treee18eb1b4abc4446d1f9623f26ea9cf433b0fa11b
parent5f4a681eeb5e353f09aa895770f7336a2b381467
tests: Use usleep instead of nanosleep

Commit "Build tests by default" 68f406436cc21853ff854c514353e7eb607cb6cb
changes the build so tests are always built.

On Solaris 10 the build fails because nanosleep is in librt, which we do
not link against.

Replace nanosleep with usleep.  This avoids introducing extra configure
tests just for Solaris 10.

Note that with Solaris 11 nanosleep was moved from librt to libc, the
standard C library.

Change-Id: I6639f32bb8c8ace438e0092a866f06561dad54f1
Reviewed-on: https://gerrit.openafs.org/14244
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
tests/auth/superuser-t.c