Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Drop prefix from unsupported source path.
@ 2014-03-31 13:50 Marcus Shawcroft
  2014-04-16  9:56 ` Marcus Shawcroft
  2014-04-16 15:34 ` Joel Brobecker
  0 siblings, 2 replies; 3+ messages in thread
From: Marcus Shawcroft @ 2014-03-31 13:50 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 478 bytes --]

Hi,

Various gdb tests report the absolute path to a source file in an 
UNSUPPORTED outcome.  This creates noise when comparing result output 
with previous test runs.  This patch drops the directory prefix from the 
reported path in a couple of the offending unsupported calls.

OK?

Cheers
/Marcus

2014-03-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>

	* lib/gdb.exp (gdb_compile_pthreads, gdb_compile_objc):
	Drop prefix from unsupported source file path.

[-- Attachment #2: gdb-test-path-1.txt --]
[-- Type: text/plain, Size: 738 bytes --]

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 73e935a..dd59738 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -2828,7 +2828,7 @@ proc gdb_compile_pthreads {source dest type options} {
         }
     }
     if {!$built_binfile} {
-        unsupported "Couldn't compile $source: ${why_msg}"
+	unsupported "Couldn't compile [file tail $source]: ${why_msg}"
         return -1
     }
 }
@@ -3000,7 +3000,7 @@ proc gdb_compile_objc {source dest type options} {
         }
     }
     if {!$built_binfile} {
-        unsupported "Couldn't compile $source: ${why_msg}"
+        unsupported "Couldn't compile [file tail $source]: ${why_msg}"
         return -1
     }
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Drop prefix from unsupported source path.
  2014-03-31 13:50 [PATCH] Drop prefix from unsupported source path Marcus Shawcroft
@ 2014-04-16  9:56 ` Marcus Shawcroft
  2014-04-16 15:34 ` Joel Brobecker
  1 sibling, 0 replies; 3+ messages in thread
From: Marcus Shawcroft @ 2014-04-16  9:56 UTC (permalink / raw)
  To: Marcus Shawcroft; +Cc: gdb-patches

On 31 March 2014 14:50, Marcus Shawcroft <marcus.shawcroft@arm.com> wrote:
> Hi,
>
> Various gdb tests report the absolute path to a source file in an
> UNSUPPORTED outcome.  This creates noise when comparing result output with
> previous test runs.  This patch drops the directory prefix from the reported
> path in a couple of the offending unsupported calls.
>
> OK?

Ping!

Cheers
/Marcus


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Drop prefix from unsupported source path.
  2014-03-31 13:50 [PATCH] Drop prefix from unsupported source path Marcus Shawcroft
  2014-04-16  9:56 ` Marcus Shawcroft
@ 2014-04-16 15:34 ` Joel Brobecker
  1 sibling, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2014-04-16 15:34 UTC (permalink / raw)
  To: Marcus Shawcroft; +Cc: gdb-patches

> Various gdb tests report the absolute path to a source file in an
> UNSUPPORTED outcome.  This creates noise when comparing result
> output with previous test runs.  This patch drops the directory
> prefix from the reported path in a couple of the offending
> unsupported calls.
[...]
> 2014-03-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
> 
> 	* lib/gdb.exp (gdb_compile_pthreads, gdb_compile_objc):
> 	Drop prefix from unsupported source file path.

Sorry for the delay. This is OK.

> diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
> index 73e935a..dd59738 100644
> --- a/gdb/testsuite/lib/gdb.exp
> +++ b/gdb/testsuite/lib/gdb.exp
> @@ -2828,7 +2828,7 @@ proc gdb_compile_pthreads {source dest type options} {
>          }
>      }
>      if {!$built_binfile} {
> -        unsupported "Couldn't compile $source: ${why_msg}"
> +	unsupported "Couldn't compile [file tail $source]: ${why_msg}"
>          return -1
>      }
>  }
> @@ -3000,7 +3000,7 @@ proc gdb_compile_objc {source dest type options} {
>          }
>      }
>      if {!$built_binfile} {
> -        unsupported "Couldn't compile $source: ${why_msg}"
> +        unsupported "Couldn't compile [file tail $source]: ${why_msg}"
>          return -1
>      }
>  }

Thanks,
-- 
Joel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-16 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-31 13:50 [PATCH] Drop prefix from unsupported source path Marcus Shawcroft
2014-04-16  9:56 ` Marcus Shawcroft
2014-04-16 15:34 ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox