Use TESTING_IN_BUILD_TREE in params.exp
authorMartin Liska <mliska@suse.cz>
Thu, 4 Aug 2016 11:06:37 +0000 (13:06 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 4 Aug 2016 11:06:37 +0000 (11:06 +0000)
* gcc.dg/params/params.exp: Replace file exists with
TESTING_IN_BUILD_TREE.

From-SVN: r239119

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/params/params.exp

index b5d8ee5..b5ccb9a 100644 (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
index 47f5af5..2eb797e 100644 (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
 }