aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2019-05-22 18:13:04 +0200
committerTom de Vries <tdevries@suse.de>2019-05-22 18:13:04 +0200
commitaf1a8d038798bef11471e28d999ad1687312a6a7 (patch)
tree850ff601d81092f5e88ab3fd00d3333ab96f15e9 /gdb
parente7fe496b1b8c0dfc44876f86131f756b424d4e70 (diff)
downloadgdb-af1a8d038798bef11471e28d999ad1687312a6a7.zip
gdb-af1a8d038798bef11471e28d999ad1687312a6a7.tar.gz
gdb-af1a8d038798bef11471e28d999ad1687312a6a7.tar.bz2
[gdb/testsuite] Require c++11 for gdb.base/align.exp
When building gdb on ubuntu 16.04 with gcc 5.4.0, and running the gdb testsuite we run into a failure due align.exp requiring at least c++11. Fix this by adding -std=c++11. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2019-05-22 Tom de Vries <tdevries@suse.de> * gdb.base/align.exp: Require c++11.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/align.exp6
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0110953..2f90b87 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2019-05-22 Tom de Vries <tdevries@suse.de>
+ * gdb.base/align.exp: Require c++11.
+
+2019-05-22 Tom de Vries <tdevries@suse.de>
+
PR testsuite/24586
* gdb.python/py-mi-var-info-path-expression.exp: Call
mi_skip_python_tests to check if python is supported.
diff --git a/gdb/testsuite/gdb.base/align.exp b/gdb/testsuite/gdb.base/align.exp
index e3ca047..8fe209e 100644
--- a/gdb/testsuite/gdb.base/align.exp
+++ b/gdb/testsuite/gdb.base/align.exp
@@ -135,8 +135,12 @@ proc run_alignment_test { lang } {
set filename [prepare_test_source_file $lang]
+ set flags {debug}
+ if { "$lang" == "c++" } {
+ lappend flags "additional_flags=-std=c++11"
+ }
standard_testfile $filename
- if {[prepare_for_testing "failed to prepare" "$lang/$testfile" $srcfile {debug}]} {
+ if {[prepare_for_testing "failed to prepare" "$lang/$testfile" $srcfile $flags]} {
return -1
}