From 318a7584f360306ed39ad46c05217a428a978fff Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 3 Nov 2006 14:13:25 +0000 Subject: add a couple more of debugging messages --- tests/libtest/lib518.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/libtest/lib518.c') diff --git a/tests/libtest/lib518.c b/tests/libtest/lib518.c index d91625f98..3f5ac11a6 100644 --- a/tests/libtest/lib518.c +++ b/tests/libtest/lib518.c @@ -311,7 +311,16 @@ static int rlimit(int keep_open) fd[num_open.rlim_cur] = -1; + sprintf(strbuff1, fmt, num_open.rlim_cur); + sprintf(strbuff, "dup() attempt %s failed", strbuff1); + fprintf(stderr, "%s\n", strbuff); + + sprintf(strbuff1, fmt, num_open.rlim_cur); + sprintf(strbuff, "fds system limit seems close to %s", strbuff1); + fprintf(stderr, "%s\n", strbuff); + num_open.rlim_max = NUM_NEEDED; + sprintf(strbuff2, fmt, num_open.rlim_max); sprintf(strbuff1, fmt, num_open.rlim_cur); sprintf(strbuff, "fds needed %s > system limit %s", -- cgit v1.2.3