The print buffer is only ever flushed when it is full. Add flushing
when the test terminates vi atexit().
Signed-off-by: Sebastien Dugue <[EMAIL PROTECTED]>
Cc: Darren Hart <[EMAIL PROTECTED]>
Cc: Tim Chavez <[EMAIL PROTECTED]>
---
testcases/realtime/lib/librttest.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/testcases/realtime/lib/librttest.c
b/testcases/realtime/lib/librttest.c
index 6fd03ed..138b551 100644
--- a/testcases/realtime/lib/librttest.c
+++ b/testcases/realtime/lib/librttest.c
@@ -128,7 +128,13 @@ int rt_init(const char *options, int (*parse_arg)(int
option, char *value), int
printf("Priority Inheritance has been disabled for this
run.\n");
if (use_buffer)
buffer_init();
+
+ /*
+ * atexit() order matters here - buffer_print() will be called before
+ * buffer_fini().
+ */
atexit(buffer_fini);
+ atexit(buffer_print);
return 0;
}
--
1.5.4.rc2.84.gf85fd-dirty
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list