+2008-03-04 Eric Blake <ebb9@byu.net>
+
+ Ignore tests that require read-only directories under root.
+ * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
+ no-write portion if user has root-like privileges.
+
2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
AT_CHECK_CONFIGURE([what_to_test=var-$1 --no-create])
# config.status might be stupidly expecting data on stdin, if it's
# really broken...
+# Skip check if user can rename files into a read-only directory (when
+# run by root or on w32).
+touch t
chmod a-w .
-AT_CHECK([./config.status var-$1 </dev/null], [1], [ignore], [ignore])
+if mv t t1 >/dev/null 2>&1 ; then
+ :
+else
+ AT_CHECK([./config.status var-$1 </dev/null], [1], [ignore], [ignore])
+fi
chmod u+w .
+rm -rf t t1
])# AT_CHECK_CONFIG_CREATION_NOWRITE