aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-05 11:05:36 +0000
committerYang Tse <yangsita@gmail.com>2007-04-05 11:05:36 +0000
commita0a79ce8533b7cf722bf1c91f0fd411f456d4568 (patch)
tree6cfa5767f858f09ac028073775059714e9115c83
parent70f9a13ecba74a1e59e7f563706efce369261ec0 (diff)
unify fopen() failure error message among tests, allowing
the testsuite to count them as errors of the same kind
-rw-r--r--tests/libtest/lib518.c3
-rw-r--r--tests/libtest/lib537.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/libtest/lib518.c b/tests/libtest/lib518.c
index b2aa0554c..756f301d9 100644
--- a/tests/libtest/lib518.c
+++ b/tests/libtest/lib518.c
@@ -409,8 +409,9 @@ static int rlimit(int keep_open)
sprintf(strbuff1, fmt, num_open.rlim_max);
sprintf(strbuff, "stdio fopen() fails with %s fds open()",
strbuff1);
- store_errmsg(strbuff, 0);
fprintf(stderr, "%s\n", msgbuff);
+ sprintf(strbuff, "stdio fopen() fails with lots of fds open()");
+ store_errmsg(strbuff, 0);
close_file_descriptors();
free(memchunk);
return -12;
diff --git a/tests/libtest/lib537.c b/tests/libtest/lib537.c
index eecda4626..a074bf994 100644
--- a/tests/libtest/lib537.c
+++ b/tests/libtest/lib537.c
@@ -412,8 +412,9 @@ static int rlimit(int keep_open)
sprintf(strbuff1, fmt, num_open.rlim_max);
sprintf(strbuff, "stdio fopen() fails with %s fds open()",
strbuff1);
- store_errmsg(strbuff, 0);
fprintf(stderr, "%s\n", msgbuff);
+ sprintf(strbuff, "stdio fopen() fails with lots of fds open()");
+ store_errmsg(strbuff, 0);
close_file_descriptors();
free(memchunk);
return -10;