This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Skip dlopen-libpthread.exp in cross testing
- From: Yao Qi <yao at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Sun, 28 Sep 2014 11:47:18 +0800
- Subject: Re: [PATCH] Skip dlopen-libpthread.exp in cross testing
- Authentication-results: sourceware.org; auth=none
- References: <1411631571-30769-1-git-send-email-yao at codesourcery dot com> <542436DE dot 4030005 at redhat dot com>
Pedro Alves <palves@redhat.com> writes:
> I think we should put an "error" call in build_executable_own_libs
> too, so that whoever adds the next test that uses this doesn't
> end up forgetting the same thing.
OK, how about this below?
Subject: [PATCH] Error in build_executable_own_libs for non-native target
gdb/testsuite:
2014-09-28 Yao Qi <yao@codesourcery.com>
* lib/prelink-support.exp (build_executable_own_libs): Error if
the target isn't native.
diff --git a/gdb/testsuite/lib/prelink-support.exp b/gdb/testsuite/lib/prelink-support.exp
index a0fb12b..113a078 100644
--- a/gdb/testsuite/lib/prelink-support.exp
+++ b/gdb/testsuite/lib/prelink-support.exp
@@ -118,6 +118,10 @@ proc file_copy {src dest} {
proc build_executable_own_libs {testname executable sources options {interp ""} {dir ""}} {
global subdir
+ if { ![isnative] } {
+ error "This proc can be only used for native target."
+ }
+
if {[build_executable $testname $executable $sources $options] == -1} {
return ""
}
--
Yao (éå)