From 6805e400e901c1f6695b2cab0c647a0d367027c1 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 4 Aug 2016 13:06:37 +0200 Subject: [PATCH] Use TESTING_IN_BUILD_TREE in params.exp * gcc.dg/params/params.exp: Replace file exists with TESTING_IN_BUILD_TREE. From-SVN: r239119 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/params/params.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b5d8ee5dc33..b5ccb9a25a1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-08-04 Martin Liska + + * gcc.dg/params/params.exp: Replace file exists with + TESTING_IN_BUILD_TREE. + 2016-08-04 Marek Polacek PR c++/70229 diff --git a/gcc/testsuite/gcc.dg/params/params.exp b/gcc/testsuite/gcc.dg/params/params.exp index 47f5af599a2..2eb797eb51d 100644 --- a/gcc/testsuite/gcc.dg/params/params.exp +++ b/gcc/testsuite/gcc.dg/params/params.exp @@ -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 }