mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-24 20:29:55 +00:00
82ad032e26
closes bug 4414
30 lines
546 B
Bash
Executable File
30 lines
546 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2008 by Denys Vlasenko
|
|
# Licensed under GPL v2, see file LICENSE for details.
|
|
|
|
. testing.sh
|
|
|
|
# testing "test name" "command" "expected result" "file input" "stdin"
|
|
|
|
testing "xargs -E _ stops on underscore" \
|
|
"xargs -E _" \
|
|
"a\n" \
|
|
"" "a\n_\nb\n"
|
|
|
|
testing "xargs -E ''" \
|
|
"xargs -E ''" \
|
|
"a _ b\n" \
|
|
"" "a\n_\nb\n"
|
|
|
|
testing "xargs -e without param" \
|
|
"xargs -e" \
|
|
"a _ b\n" \
|
|
"" "a\n_\nb\n"
|
|
|
|
testing "xargs does not stop on underscore ('new' GNU behavior)" \
|
|
"xargs" \
|
|
"a _ b\n" \
|
|
"" "a\n_\nb\n"
|
|
|
|
exit $FAILCOUNT
|