diff mbox

[google] Add testcase for relative paths for FDO (issue4354042)

Message ID 20110401173716.373851EEBD5@martint2.mtv.corp.google.com
State New
Headers show

Commit Message

Martin Thuresson April 1, 2011, 5:37 p.m. UTC
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  <martint@google.com>

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


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

Comments

Diego Novillo April 2, 2011, 6:37 a.m. UTC | #1
On Fri, Apr 1, 2011 at 19:37, Martin Thuresson <martint@google.com> wrote:

> 2011-04-01  Martin Thuresson  <martint@google.com>
>
>        PR gcov-profile/47793
>        * gcc/testsuite/gcc.dg/pr47793.c: New test

OK.


Diego.
Diego Novillo April 4, 2011, 12:17 p.m. UTC | #2
On Sat, Apr 2, 2011 at 08:37, Diego Novillo <dnovillo@google.com> wrote:
> On Fri, Apr 1, 2011 at 19:37, Martin Thuresson <martint@google.com> wrote:
>
>> 2011-04-01  Martin Thuresson  <martint@google.com>
>>
>>        PR gcov-profile/47793
>>        * gcc/testsuite/gcc.dg/pr47793.c: New test
>
> OK.

Committed in rev r171935.

Given that you'll keep sending patches, could you please fill-in the
form for write access?   See
http://sourceware.org/cgi-bin/pdw/ps_form.cgi.

Thanks.  Diego.
diff mbox

Patch

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 } } */