rbb 2004/05/23 12:51:56
Modified: test abts.c
Log:
Fix the output from -q. Now, there are no control characters printed when
using -q mode.
Revision Changes Path
1.4 +6 -3 apr/test/abts.c
Index: abts.c
===================================================================
RCS file: /home/cvs/apr/test/abts.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- abts.c 14 May 2004 14:43:22 -0000 1.3
+++ abts.c 23 May 2004 19:51:56 -0000 1.4
@@ -70,8 +70,10 @@
{
if (suite != NULL) {
sub_suite *last = suite->tail;
- fprintf(stdout, "\b");
- fflush(stdout);
+ if (!quiet) {
+ fprintf(stdout, "\b");
+ fflush(stdout);
+ }
if (last->failed == 0) {
fprintf(stdout, "SUCCESS\n");
fflush(stdout);
@@ -116,7 +118,8 @@
}
reset_status();
- fprintf(stdout, "%s: %c", suite_name, status[curr_char]);
+ fprintf(stdout, "%s: ", suite_name);
+ update_status();
fflush(stdout);
return suite;