find:: get rid of nested function (it's a gcc-ism)
[oweals/busybox.git] / testsuite / expand.tests
index 357a9ad6b1bda4f5bc6015562f6dc95095017016..0682c295042f1ae3e3d165d79901a53555a8f418 100755 (executable)
@@ -1,8 +1,9 @@
 #!/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 -f "$bindir/.config" && . "$bindir/.config"
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
@@ -12,13 +13,12 @@ testing "expand" \
        "" \
        "\t12345678\t12345678\n"
 
-optional UNICODE_SUPPORT
-testing "expand with unicode characher 0x394" \
+test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
+&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \
+&& testing "expand with unicode characher 0x394" \
        "expand" \
        "Δ       12345ΔΔΔ        12345678\n" \
        "" \
        "Δ\t12345ΔΔΔ\t12345678\n"
-SKIP=
-
 
 exit $FAILCOUNT