Commit e4596b66 by Iain Sandoe

coroutines, testsuite: Fix single test execution.

Invocations of the coro-torture.exp like 'coro-torture.exp=some-test.C' were
failing because DEFAULT_CXXFLAGS was undefined.  Fixed by defining this
locally, if it has no pre-existing global value.
parent 0dad5b33
2020-03-17 Iain Sandoe <iain@sandoe.co.uk>
* g++.dg/coroutines/torture/coro-torture.exp: Ensure that
DEFAULT_CXXFLAGS has a value, even if unset by a higher level.
2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com> 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
Mihail Ionescu <mihail.ionescu@arm.com> Mihail Ionescu <mihail.ionescu@arm.com>
Srinath Parvathaneni <srinath.parvathaneni@arm.com> Srinath Parvathaneni <srinath.parvathaneni@arm.com>
......
...@@ -3,13 +3,19 @@ ...@@ -3,13 +3,19 @@
load_lib g++-dg.exp load_lib g++-dg.exp
load_lib torture-options.exp load_lib torture-options.exp
global DG_TORTURE_OPTIONS LTO_TORTURE_OPTIONS global DG_TORTURE_OPTIONS LTO_TORTURE_OPTIONS
dg-init # If a testcase doesn't have special options, use these.
torture-init global DEFAULT_CXXFLAGS
if ![info exists DEFAULT_CXXFLAGS] then {
set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long"
}
set DEFAULT_COROFLAGS $DEFAULT_CXXFLAGS set DEFAULT_COROFLAGS $DEFAULT_CXXFLAGS
lappend DEFAULT_COROFLAGS "-std=c++17" "-fcoroutines" lappend DEFAULT_COROFLAGS "-fcoroutines" "-std=c++17"
dg-init
torture-init
set-torture-options [concat $DG_TORTURE_OPTIONS $LTO_TORTURE_OPTIONS] set-torture-options [concat $DG_TORTURE_OPTIONS $LTO_TORTURE_OPTIONS]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment