aboutsummaryrefslogtreecommitdiff
path: root/testsuite/hostname/hostname-d-works
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/hostname/hostname-d-works')
-rw-r--r--testsuite/hostname/hostname-d-works5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/hostname/hostname-d-works b/testsuite/hostname/hostname-d-works
index a9aeb92cb..e062242bb 100644
--- a/testsuite/hostname/hostname-d-works
+++ b/testsuite/hostname/hostname-d-works
@@ -1,2 +1,3 @@
-test x$(hostname -d) = x$(busybox hostname -d)
-
+f=$(busybox hostname -f)
+d=$(busybox hostname -d)
+test x"${f#*.}" = x"$d"