diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-01-21 17:28:06 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-01-22 09:02:11 +0000 |
commit | 1ac78c044471fa65b952c2e5c47dcf4d0ccf9b79 (patch) | |
tree | 49e957ef404d1c598a231907c72be5ea26bd3733 /gdb | |
parent | d86feca31bd9b814fd5317a0ebdbe86fb812a1bd (diff) | |
download | gdb-1ac78c044471fa65b952c2e5c47dcf4d0ccf9b79.zip gdb-1ac78c044471fa65b952c2e5c47dcf4d0ccf9b79.tar.gz gdb-1ac78c044471fa65b952c2e5c47dcf4d0ccf9b79.tar.bz2 |
[testsuite] Unbuffer the output in gdb.base/multi-forks.c
This patch unbuffer the output of the program so that the test harness
can count the number of "done" from output correctly.
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/multi-forks.c | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b3b398c..d7721d5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +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. + 2016-01-21 Doug Evans <dje@google.com> * lib/ada.exp (gdb_compile_ada): Fix typo. 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 (); |