diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2010-08-10 23:33:57 -0700 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-11 14:09:28 +0200 |
commit | 775965de859c6df5d5652f3f58edfd68803f0813 (patch) | |
tree | 445445fa22d29a79b68dcfd109854a12ffe44ec4 /testsuite/uuencode.tests | |
parent | f03fc7d77a5df53aae5eb2d02a49860dc2878da7 (diff) | |
download | busybox-w32-775965de859c6df5d5652f3f58edfd68803f0813.tar.gz busybox-w32-775965de859c6df5d5652f3f58edfd68803f0813.tar.bz2 busybox-w32-775965de859c6df5d5652f3f58edfd68803f0813.zip |
Improved portability of tests
Removed assumptions about umask and locale. Fixed hostname
tests to work even when the host has no DNS domain set.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/uuencode.tests')
-rwxr-xr-x | testsuite/uuencode.tests | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuite/uuencode.tests b/testsuite/uuencode.tests index 6556e60d1..adb2d3390 100755 --- a/testsuite/uuencode.tests +++ b/testsuite/uuencode.tests | |||
@@ -13,11 +13,10 @@ | |||
13 | # test can create a file "actual" instead of writing to stdout | 13 | # test can create a file "actual" instead of writing to stdout |
14 | 14 | ||
15 | # Test setup of standard input | 15 | # Test setup of standard input |
16 | saved_umask=$(umask) | ||
17 | umask 0 | 16 | umask 0 |
18 | testing "uuencode sets standard input mode correctly" \ | 17 | testing "uuencode sets standard input mode correctly" \ |
19 | "uuencode foo </dev/null | head -n 1 | grep -q 666 && echo yes" "yes\n" "" "" | 18 | "uuencode foo </dev/null | head -n 1 | grep -q 666 && echo yes" "yes\n" "" "" |
20 | umask $saved_umask | 19 | umask 022 |
21 | 20 | ||
22 | testing "uuencode correct encoding" "uuencode bb_uuenc_test.out" \ | 21 | testing "uuencode correct encoding" "uuencode bb_uuenc_test.out" \ |
23 | "begin 644 bb_uuenc_test.out\nM5&AE(&9A<W0@9W)E>2!F;W@@:G5M<&5D(&]V97(@=&AE(&QA>GD@8G)O=VX@\n%9&]G+@H\`\n\`\nend\n" \ | 22 | "begin 644 bb_uuenc_test.out\nM5&AE(&9A<W0@9W)E>2!F;W@@:G5M<&5D(&]V97(@=&AE(&QA>GD@8G)O=VX@\n%9&]G+@H\`\n\`\nend\n" \ |