Use TESTING_IN_BUILD_TREE in params.exp

* gcc.dg/params/params.exp: Replace file exists with
	TESTING_IN_BUILD_TREE.

From-SVN: r239119
This commit is contained in:
Martin Liska 2016-08-04 13:06:37 +02:00 committed by Martin Liska
parent 231b116970
commit 6805e400e9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-08-04 Martin Liska <mliska@suse.cz>
* gcc.dg/params/params.exp: Replace file exists with
TESTING_IN_BUILD_TREE.
2016-08-04 Marek Polacek <polacek@redhat.com>
PR c++/70229

View File

@ -32,7 +32,7 @@ proc param_run_test { param_name param_value } {
}
set options_file "$objdir/../../params.options"
if { [file exists $options_file] == 0 } {
if { [info exists TESTING_IN_BUILD_TREE] == 0 } {
return
}