Run guality tests on Solaris
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 29 Jan 2015 10:12:14 +0000 (10:12 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 29 Jan 2015 10:12:14 +0000 (10:12 +0000)
* gcc.dg/guality/guality.h (main): Add argv[0] to
guality_gdb_command.

From-SVN: r220237

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/guality/guality.exp
gcc/testsuite/gcc.dg/guality/guality.exp
gcc/testsuite/gcc.dg/guality/guality.h

index a0fbef7c30b20ca5cfe1b6df612073d23bafe02c..729f386011a8cd5e875bcfc9f4d00afd191736f5 100644 (file)
@@ -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
index 283c079f37e8a8d7ab7c573a3c125ff91796b22b..5bffd9df1a04d2c5088bf4dcefb2cc833ec4e496 100644 (file)
@@ -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*"] } {
index e21d5f5e1a4fcf614f63990eaa588e6b0758c852..d2b863397bae78db107c06e8928b5a31e853295f 100644 (file)
@@ -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*"] } {
index 8b657f29f0b9b4726d8483e097df25ad9a54d169..52fa706ffe329966669df15610440697b478d868 100644 (file)
@@ -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;