Changes for kernel and Busybox
[tomato.git] / release / src / router / busybox / testsuite / uncompress.tests
blob51a2334937b8c9c8ab6b9475eee81f4077024239
1 #!/bin/sh
2 # Copyright 2011 by Denys Vlasenko
3 # Licensed under GPLv2, see file LICENSE in this source tree.
5 . ./testing.sh
7 # testing "test name" "commands" "expected result" "file input" "stdin"
9 testing "uncompress < \x1f\x9d\x90 \x01 x N" \
10 'uncompress 2>&1 1>/dev/null; echo $?' \
12 uncompress: corrupted data
14 " \
15 "" "\
16 \x1f\x9d\x90\
17 \01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\
20 exit $FAILCOUNT