summaryrefslogtreecommitdiff
path: root/test/inet/tst-ethers-line.c
diff options
context:
space:
mode:
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>2016-06-21 14:19:05 +0300
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-22 08:02:50 +0200
commitfcbbde85024f494d7ba573bf8a4474755452efdd (patch)
treeb4c709f2cbce749951a562f45f5281492f44f07e /test/inet/tst-ethers-line.c
parent35adc1fa7fbecea572afaf829a33454da0f764b0 (diff)
test: inet: Fix warning messages
This patch is to address a proposal by Waldemar in this thread: http://mailman.uclibc-ng.org/pipermail/devel/2016-June/001006.html tst-ethers-line and tst-ethers require /etc/ethers to exist, otherwise user should create it manually. Add this info to warning message. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Diffstat (limited to 'test/inet/tst-ethers-line.c')
-rw-r--r--test/inet/tst-ethers-line.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/inet/tst-ethers-line.c b/test/inet/tst-ethers-line.c
index 19cf2fbf4..182faf098 100644
--- a/test/inet/tst-ethers-line.c
+++ b/test/inet/tst-ethers-line.c
@@ -14,7 +14,8 @@
#define ETHER_LINE_LEN 256
/* This test requires /etc/ethers to exist
- * and to have nonzero length
+ * and to have nonzero length. You should create it manually,
+ * if it doesn't exist.
*/
int main(void)
@@ -26,7 +27,7 @@ int main(void)
struct stat statb;
if ((fd = open(ETHER_FILE_NAME, O_RDONLY)) == -1) {
- perror ("Cannot open file");
+ perror ("Cannot open file /etc/ethers");
exit(1);
}