* [PATCH OBV] [testsuite] Unbuffer the output in gdb.base/multi-forks.c
@ 2016-01-22 8:57 Yao Qi
0 siblings, 0 replies; only message in thread
From: Yao Qi @ 2016-01-22 8:57 UTC (permalink / raw)
To: gdb-patches
This patch unbuffer the output of the program so that the test harness
can count the number of "done" from output correctly.
I'll push it in.
gdb/testsuite:
2016-01-22 Yao Qi <yao.qi@linaro.org>
PR testsuite/19491
* gdb.base/multi-forks.c: Include
../lib/unbuffer_output.c
(main): Call gdb_unbuffer_output.
---
gdb/testsuite/gdb.base/multi-forks.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gdb/testsuite/gdb.base/multi-forks.c b/gdb/testsuite/gdb.base/multi-forks.c
index 994d0c7..06579c8 100644
--- a/gdb/testsuite/gdb.base/multi-forks.c
+++ b/gdb/testsuite/gdb.base/multi-forks.c
@@ -20,6 +20,8 @@
#include <sys/types.h>
#include <unistd.h>
+#include "../lib/unbuffer_output.c"
+
pid_t pids[4];
int
@@ -27,6 +29,8 @@ main()
{
int i;
+ gdb_unbuffer_output ();
+
for (i = 0; i < 4; i++)
pids [i] = fork ();
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-22 8:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-22 8:57 [PATCH OBV] [testsuite] Unbuffer the output in gdb.base/multi-forks.c Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).