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]

[PATCH] Skip gcore-buffer-overflow.exp on windows


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


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