mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
tests: Ensure temp file cleanup on Solaris
Commit 71acc392a399 'tests: Generalize temp dir management' introduced afstest_mkdtemp and afstest_rmdtemp. In afstest_rmdtemp, we invoke rm with option --one-file-system for Linux and Solaris only. However, this rm option is new for Solaris 11.4; older Solaris versions of rm do not support --one-file-system. This causes afstest_rmdtemp to always silently fail on Solaris 11.3 or older, due to the invalid rm option. Correct the #ifdef so ihe --one-file-system option is specified only for Linux. An autoconfig test could be added in a future commit. Change-Id: Idfe8a018698b128463aaa9679dfef4e55deef805 Reviewed-on: https://gerrit.openafs.org/15723 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Cheyenne Wills <cwills@sinenomine.net> Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
parent
f3fb37d608
commit
ac9d766b47
@ -91,7 +91,7 @@ afstest_rmdtemp(char *path)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
afstest_systemlp("rm", "-rf",
|
afstest_systemlp("rm", "-rf",
|
||||||
#if defined(AFS_LINUX_ENV) || defined(AFS_SUN511_ENV)
|
#if defined(AFS_LINUX_ENV)
|
||||||
"--one-file-system",
|
"--one-file-system",
|
||||||
#endif
|
#endif
|
||||||
path, (char*)NULL);
|
path, (char*)NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user