This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Drop prefix from unsupported source path.


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]