public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR16543
@ 2014-02-08 12:59 Yao Qi
  2014-02-09  8:09 ` Doug Evans
  0 siblings, 1 reply; 3+ messages in thread
From: Yao Qi @ 2014-02-08 12:59 UTC (permalink / raw)
  To: gdb-patches

Tests in gdb.gdb fail because directory gdb/testsuite/gdb.gdb doesn't
exist in build tree.  This patch appends gdb.gdb/Makefile in AC_OUTPUT,
and adds new Makefile.in in gdb.gdb, so that directory gdb.gdb can be
created during configure.

With this patch applied, tests under gdb.gdb can be run,

$ make check RUNTESTFLAGS='--directory=gdb.gdb'

Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../git/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running ../../../../git/gdb/testsuite/gdb.gdb/complaints.exp ...
Running ../../../../git/gdb/testsuite/gdb.gdb/observer.exp ...
Running ../../../../git/gdb/testsuite/gdb.gdb/python-interrupts.exp ...
FAIL: gdb.gdb/python-interrupts.exp: signal SIGINT
Running ../../../../git/gdb/testsuite/gdb.gdb/python-selftest.exp ...
FAIL: gdb.gdb/python-selftest.exp: call catch_command_errors(execute_command, "python print 5", 0, RETURN_MASK_ALL)
Running ../../../../git/gdb/testsuite/gdb.gdb/selftest.exp ...
Running ../../../../git/gdb/testsuite/gdb.gdb/xfullpath.exp ...

                === gdb Summary ===

# of expected passes            172
# of unexpected failures        2

gdb/testsuite:

2014-02-08  Yao Qi  <yao@codesourcery.com>

	PR testsuite/16543
	* configure.ac: Append gdb.gdb/Makefile in AC_OUTPUT.
	* configure: Regenerated.
	* Makefile.in: New file.
---
 gdb/testsuite/configure           |    3 ++-
 gdb/testsuite/configure.ac        |    2 +-
 gdb/testsuite/gdb.gdb/Makefile.in |   15 +++++++++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 gdb/testsuite/gdb.gdb/Makefile.in

diff --git a/gdb/testsuite/configure b/gdb/testsuite/configure
index 94542a6..aa08add 100755
--- a/gdb/testsuite/configure
+++ b/gdb/testsuite/configure
@@ -3448,7 +3448,7 @@ done
 
 
 
-ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
+ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -4160,6 +4160,7 @@ do
     "gdb.dwarf2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;;
     "gdb.dlang/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dlang/Makefile" ;;
     "gdb.fortran/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;;
+    "gdb.gdb/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.gdb/Makefile" ;;
     "gdb.go/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.go/Makefile" ;;
     "gdb.server/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.server/Makefile" ;;
     "gdb.java/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;;
diff --git a/gdb/testsuite/configure.ac b/gdb/testsuite/configure.ac
index 61d0bff..b6640bd 100644
--- a/gdb/testsuite/configure.ac
+++ b/gdb/testsuite/configure.ac
@@ -91,7 +91,7 @@ AC_OUTPUT([Makefile \
   gdb.ada/Makefile \
   gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile \
   gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
-  gdb.dlang/Makefile gdb.fortran/Makefile gdb.go/Makefile \
+  gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile \
   gdb.server/Makefile gdb.java/Makefile \
   gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile \
   gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile \
diff --git a/gdb/testsuite/gdb.gdb/Makefile.in b/gdb/testsuite/gdb.gdb/Makefile.in
new file mode 100644
index 0000000..5527c3e
--- /dev/null
+++ b/gdb/testsuite/gdb.gdb/Makefile.in
@@ -0,0 +1,15 @@
+VPATH = @srcdir@
+srcdir = @srcdir@
+
+EXECUTABLES =
+
+all info install-info dvi install uninstall installcheck check:
+	@echo "Nothing to be done for $@..."
+
+clean mostlyclean:
+	-rm -f *~ *.o *.ci
+	-rm -f *.dwo *.dwp
+	-rm -f core ${EXECUTABLES}
+
+distclean maintainer-clean realclean: clean
+	-rm -f Makefile config.status config.log gdb.log gdb.sum
-- 
1.7.7.6

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

* Re: [PATCH] Fix PR16543
  2014-02-08 12:59 [PATCH] Fix PR16543 Yao Qi
@ 2014-02-09  8:09 ` Doug Evans
  2014-02-10  1:59   ` Yao Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Evans @ 2014-02-09  8:09 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

On Sat, Feb 8, 2014 at 4:57 AM, Yao Qi <yao@codesourcery.com> wrote:
> Tests in gdb.gdb fail because directory gdb/testsuite/gdb.gdb doesn't
> exist in build tree.  This patch appends gdb.gdb/Makefile in AC_OUTPUT,
> and adds new Makefile.in in gdb.gdb, so that directory gdb.gdb can be
> created during configure.
>
> With this patch applied, tests under gdb.gdb can be run,
>
> $ make check RUNTESTFLAGS='--directory=gdb.gdb'
>
> Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
> Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
> Using ../../../../git/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
> Running ../../../../git/gdb/testsuite/gdb.gdb/complaints.exp ...
> Running ../../../../git/gdb/testsuite/gdb.gdb/observer.exp ...
> Running ../../../../git/gdb/testsuite/gdb.gdb/python-interrupts.exp ...
> FAIL: gdb.gdb/python-interrupts.exp: signal SIGINT
> Running ../../../../git/gdb/testsuite/gdb.gdb/python-selftest.exp ...
> FAIL: gdb.gdb/python-selftest.exp: call catch_command_errors(execute_command, "python print 5", 0, RETURN_MASK_ALL)
> Running ../../../../git/gdb/testsuite/gdb.gdb/selftest.exp ...
> Running ../../../../git/gdb/testsuite/gdb.gdb/xfullpath.exp ...
>
>                 === gdb Summary ===
>
> # of expected passes            172
> # of unexpected failures        2
>
> gdb/testsuite:
>
> 2014-02-08  Yao Qi  <yao@codesourcery.com>
>
>         PR testsuite/16543
>         * configure.ac: Append gdb.gdb/Makefile in AC_OUTPUT.
>         * configure: Regenerated.
>         * Makefile.in: New file.

Thanks.
One less thing on my todo list. :-)

Ok by me.

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

* Re: [PATCH] Fix PR16543
  2014-02-09  8:09 ` Doug Evans
@ 2014-02-10  1:59   ` Yao Qi
  0 siblings, 0 replies; 3+ messages in thread
From: Yao Qi @ 2014-02-10  1:59 UTC (permalink / raw)
  To: Doug Evans; +Cc: gdb-patches

On 02/09/2014 04:09 PM, Doug Evans wrote:
> Thanks.
> One less thing on my todo list. :-)
> 
> Ok by me.

Patch is pushed.

-- 
Yao (齐尧)

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

end of thread, other threads:[~2014-02-10  1:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-08 12:59 [PATCH] Fix PR16543 Yao Qi
2014-02-09  8:09 ` Doug Evans
2014-02-10  1:59   ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).