randomconfig fixes 3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-06-20 00:36:21 +02:00
parent bb0bf287d8
commit 94046d0495
2 changed files with 2 additions and 1 deletions

View File

@ -686,6 +686,7 @@ int grep_main(int argc UNUSED_PARAM, char **argv)
#if ENABLE_FEATURE_GREP_CONTEXT
int Copt, opts;
#endif
INIT_G();
/* For grep, exitcode of 1 is "not found". Other errors are 2: */
xfunc_error_retval = 2;

View File

@ -1,4 +1,4 @@
# FEATURE: CONFIG_FEATURE_HUMAN_READABLE
dd if=/dev/zero of=file bs=1M count=1 2>/dev/null
test x"`busybox du -m file`" = x"1 ."
test x"`busybox du -m file`" = x"1 file"