find:: get rid of nested function (it's a gcc-ism)
[oweals/busybox.git] / testsuite / makedevs.tests
index f69b4a6b136d1e15700b1b98d1b243c0f1cce215..fd12460ec7d4b701a3e1d3d8d1ff6f7ce7c238b3 100755 (executable)
@@ -1,9 +1,18 @@
 #!/bin/sh
 # Copyright 2008 by Denys Vlasenko
-# Licensed under GPL v2, see file LICENSE for details.
+# Licensed under GPLv2, see file LICENSE in this source tree.
 
 . ./testing.sh
 
+test x"`id -u`" = x"0" || {
+       echo "SKIPPED: makedevs (must be root to test this)"
+       exit 0
+}
+
+unset LANG
+unset LC_COLLATE
+unset LC_ALL
+
 # ls -ln is showing date. Need to remove that, it's variable
 # sed: (1) "maj, min" -> "maj,min" (2) coalesce spaces
 # cut: remove date