Check file exists before completion tests
authorYao Qi <yao@codesourcery.com>
Wed, 2 Apr 2014 04:44:22 +0000 (12:44 +0800)
committerYao Qi <yao@codesourcery.com>
Fri, 11 Apr 2014 04:54:09 +0000 (12:54 +0800)
commit322f9c2100806387b8ace4df7a2b940b03b3d703
tree4acbea5f32c3220c475dac58bdc05496fbce1d28
parent1511baeca965fcf4cf36379c6b3f8a0b85263544
Check file exists before completion tests

Doug told me that there are some regressions in gdb.base/completion.exp.
They are caused by my recent change, and can be reproduced via:

$ make check-parallel TESTS=gdb.base/completion.exp
FAIL: gdb.base/completion.exp: complete target core ./gdb.base/completion
FAIL: gdb.base/completion.exp: complete target tfile ./gdb.base/completion
FAIL: gdb.base/completion.exp: complete target exec ./gdb.base/completion

Current tests assume that gdb.base/completion exists but that is wrong
in a parallel run, because binary file and object files are placed
in outputs/gdb.base/completion/.

This patch is to check file exists on two candidate directories,
"gdb.base" and "outputs/gdb.base/completion/", and run tests with files
existed in either of them.

gdb/testsuite:

2014-04-11  Yao Qi  <yao@codesourcery.com>

* gdb.base/completion.exp: Check file exists before running tests
on file completion.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/completion.exp
This page took 0.026617 seconds and 4 git commands to generate.