Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2010-08-11 10:33:57 +0400
committerDenys Vlasenko <vda.linux@googlemail.com>2010-08-11 16:09:28 +0400
commit775965de859c6df5d5652f3f58edfd68803f0813 (patch)
tree445445fa22d29a79b68dcfd109854a12ffe44ec4 /testsuite/hostname
parentf03fc7d77a5df53aae5eb2d02a49860dc2878da7 (diff)
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/hostname')
-rw-r--r--testsuite/hostname/hostname-d-works4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/hostname/hostname-d-works b/testsuite/hostname/hostname-d-works
index e062242bb..54c0aac0c 100644
--- a/testsuite/hostname/hostname-d-works
+++ b/testsuite/hostname/hostname-d-works
@@ -1,3 +1,3 @@
-f=$(busybox hostname -f)
+f=$(busybox hostname -f).
d=$(busybox hostname -d)
-test x"${f#*.}" = x"$d"
+test x"${f#*.}" = x"$d${d:+.}"