libpwdgrp: tweak comments, replace one xmalloc with xzalloc
[oweals/busybox.git] / testsuite / hostid / hostid-works
index e85698e66a9293c5ae60807f47979a08d0fc3120..8c20bdfcc68a38e1832d7b60f345549d1cb53117 100644 (file)
@@ -1,2 +1,6 @@
-test x$(hostid) = x$(busybox hostid)
-
+h=x$(busybox hostid)
+# Is $h a sequence of hex numbers?
+case "$h" in
+ x*[!0-9a-f]*) false;;
+ *) true;;
+esac