[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.
This commit is contained in:
parent
d86feca31b
commit
1ac78c0444
2 changed files with 11 additions and 0 deletions
|
@ -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>
|
2016-01-21 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* lib/ada.exp (gdb_compile_ada): Fix typo.
|
* lib/ada.exp (gdb_compile_ada): Fix typo.
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include "../lib/unbuffer_output.c"
|
||||||
|
|
||||||
pid_t pids[4];
|
pid_t pids[4];
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -27,6 +29,8 @@ main()
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
gdb_unbuffer_output ();
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
pids [i] = fork ();
|
pids [i] = fork ();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue