use of 'testing' function from testsuite/testing.sh

Denys Vlasenko vda.linux at googlemail.com
Fri May 2 23:20:31 UTC 2008


On Saturday 03 May 2008 00:12, Cristian Ionescu-Idbohrn wrote:
> > It should just feed the stding and create "input",
> > and don't worry whether thing being tested uses it or not.
> 
> How do you then test whether thing being tested _shouldn't_ use it?

"echo FOO | { thing being tested; read foo; }; echo $foo"

If $foo is not set to FOO, thing ate FOO. Bad thing, bad.
--
vda



More information about the busybox mailing list