diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-29 10:12:14 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-29 10:12:14 +0000 |
commit | 019e72c5e053044b11262dd5a3e239f7c5049dba (patch) | |
tree | 383c3a86c30d1f0bce7429af8ffbc762349bc8af | |
parent | 8c7631cc88f863f875752318d990c825b0f0257e (diff) | |
download | gcc-019e72c5e053044b11262dd5a3e239f7c5049dba.tar.gz |
Run guality tests on Solaris
* gcc.dg/guality/guality.h (main): Add argv[0] to
guality_gdb_command.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220237 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/guality/guality.exp | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/guality/guality.exp | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/guality/guality.h | 10 |
4 files changed, 17 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a0fbef7c30b..729f386011a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * gcc.dg/guality/guality.h (main): Add argv[0] to + guality_gdb_command. + 2015-01-29 Jan Hubicka <hubicka@ucw.cz> PR ipa/64801 diff --git a/gcc/testsuite/g++.dg/guality/guality.exp b/gcc/testsuite/g++.dg/guality/guality.exp index 283c079f37e..5bffd9df1a0 100644 --- a/gcc/testsuite/g++.dg/guality/guality.exp +++ b/gcc/testsuite/g++.dg/guality/guality.exp @@ -5,7 +5,7 @@ load_lib gcc-gdb-test.exp # Disable on darwin until radr://7264615 is resolved. if { [istarget *-*-darwin*] } { - return + return } if { [istarget "powerpc-ibm-aix*"] } { diff --git a/gcc/testsuite/gcc.dg/guality/guality.exp b/gcc/testsuite/gcc.dg/guality/guality.exp index e21d5f5e1a4..d2b863397ba 100644 --- a/gcc/testsuite/gcc.dg/guality/guality.exp +++ b/gcc/testsuite/gcc.dg/guality/guality.exp @@ -5,7 +5,7 @@ load_lib gcc-gdb-test.exp # Disable on darwin until radr://7264615 is resolved. if { [istarget *-*-darwin*] } { - return + return } if { [istarget "powerpc-ibm-aix*"] } { diff --git a/gcc/testsuite/gcc.dg/guality/guality.h b/gcc/testsuite/gcc.dg/guality/guality.h index 8b657f29f0b..52fa706ffe3 100644 --- a/gcc/testsuite/gcc.dg/guality/guality.h +++ b/gcc/testsuite/gcc.dg/guality/guality.h @@ -228,6 +228,16 @@ main (int argc, char *argv[]) } } + if (argv[0]) + { + int len = strlen (guality_gdb_command) + 1 + strlen (argv[0]); + char *buf = (char *) __builtin_alloca (len); + strcpy (buf, guality_gdb_command); + strcat (buf, " "); + strcat (buf, argv[0]); + guality_gdb_command = buf; + } + for (i = 1; i < argc; i++) if (strcmp (argv[i], "--guality-skip") == 0) guality_skip = 1; |