diff options
author | Yang Tse <yangsita@gmail.com> | 2006-11-03 14:13:25 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-11-03 14:13:25 +0000 |
commit | 318a7584f360306ed39ad46c05217a428a978fff (patch) | |
tree | 0cc56e0d9f90d62c4f74fc04b15c986ff3324bb0 /tests | |
parent | 961ec228d468e302c94ba16c161aaefb1b725acd (diff) |
add a couple more of debugging messages
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib518.c | 9 | ||||
-rw-r--r-- | tests/libtest/lib537.c | 2 |
2 files changed, 10 insertions, 1 deletions
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", diff --git a/tests/libtest/lib537.c b/tests/libtest/lib537.c index 08bf1209c..fd030dd10 100644 --- a/tests/libtest/lib537.c +++ b/tests/libtest/lib537.c @@ -303,7 +303,7 @@ static int rlimit(int keep_open) fprintf(stderr, "%s\n", strbuff); sprintf(strbuff1, fmt, num_open.rlim_cur); - sprintf(strbuff, "fd system limit seems close to %s", strbuff1); + sprintf(strbuff, "fds system limit seems close to %s", strbuff1); fprintf(stderr, "%s\n", strbuff); num_open.rlim_max = num_open.rlim_cur - SAFETY_MARGIN; |