This patch should go into google/main.

Add testcase to verify that relative profile paths workes.

Bootstraped without regression on x86_64.


2011-04-01  Martin Thuresson  <mart...@google.com>

        PR gcov-profile/47793
        * gcc/testsuite/gcc.dg/pr47793.c: New test

Index: gcc/testsuite/gcc.dg/pr47793.c
===================================================================
--- gcc/testsuite/gcc.dg/pr47793.c      (revision 0)
+++ gcc/testsuite/gcc.dg/pr47793.c      (revision 0)
@@ -0,0 +1,12 @@
+/* Bug pr47793: Allow relative paths in profile-generate.  */
+/* { dg-do run } */
+/* { dg-options "-O -fprofile-generate=./" } */
+/* { dg-final { scan-file pr47793.gcda "."} } */
+
+int
+main(void)
+{
+  return 0;
+}
+
+/* { dg-final { cleanup-coverage-files } } */

--
This patch is available for review at http://codereview.appspot.com/4354042

Reply via email to