Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Skip gcore-buffer-overflow.exp on windows
@ 2012-11-15 15:02 Yao Qi
  2012-11-15 15:21 ` Joel Brobecker
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yao Qi @ 2012-11-15 15:02 UTC (permalink / raw)
  To: gdb-patches

Hi,
When running gcore-buffer-overflow.exp on ia32/windows host,
we saw the following error,

  cp: accessing `XXX/gdb.base/gcore-buffer-overflow-01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789': File name too long

Looks we don't have other supported hosts that have file name length
limitation, so this patch simply skips it on windows.  Is it OK?

gdb/testsuite:

2012-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
	    Yao Qi  <yao@codesourcery.com>

	* gdb.base/gcore-buffer-overflow.exp: Skip on Windows.
---
 gdb/testsuite/gdb.base/gcore-buffer-overflow.exp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp
index 13c3e75..45139bd 100644
--- a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp
+++ b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp
@@ -15,6 +15,11 @@
 
 # Test GDB's internal buffers safety for the GCORE command.
 
+# Skip this test on Windows; the long filename is not allowed.
+if { [ishost "i?86-*-mingw*"] } {
+    untested gcore-buffer-overflow.exp
+    return -1
+}
 
 set testfile "gcore-buffer-overflow"
 set srcfile  ${testfile}.c
-- 
1.7.7.6


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

end of thread, other threads:[~2012-11-19  2:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-15 15:02 [PATCH] Skip gcore-buffer-overflow.exp on windows Yao Qi
2012-11-15 15:21 ` Joel Brobecker
2012-11-15 16:04 ` Pedro Alves
2012-11-15 17:09 ` Eli Zaretskii
2012-11-16  1:11   ` Yao Qi
2012-11-16 15:57     ` Eli Zaretskii
2012-11-19  2:41       ` Yao Qi

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