summaryrefslogtreecommitdiffstats
path: root/tests/include.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include.rc')
-rw-r--r--tests/include.rc10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/include.rc b/tests/include.rc
index cd5d07f2629..ab26755c639 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -324,6 +324,16 @@ stat -c %s /dev/null > /dev/null 2>&1 || {
exit 2;
fi
+ # %t/%T should return 0 for non devices.
+ case "${format}" in
+ *%t*|*%T*)
+ `which stat` -f '%HT' $f | grep -q 'Device$' || \
+ format=`echo "${format}" | sed 's/%t/0/g; s/%T/0/g;'`
+ ;;
+ *)
+ ;;
+ esac
+
if [ "x${format}" = "x" ] ; then
`which stat` $f
else