reopen_tempfile(): truncate opened file
[gitweb.git] / t / test-lib.sh
index fed21c3dfc44a00977a9d673ea7cb07415da76ce..28315706be709d28c85785e389b381a8617337e3 100644 (file)
@@ -1108,12 +1108,7 @@ test_lazy_prereq UTF8_NFD_TO_NFC '
        auml=$(printf "\303\244")
        aumlcdiar=$(printf "\141\314\210")
        >"$auml" &&
-       case "$(echo *)" in
-       "$aumlcdiar")
-               true ;;
-       *)
-               false ;;
-       esac
+       test -f "$aumlcdiar"
 '
 
 test_lazy_prereq AUTOIDENT '