aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-config.py
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-10-29 21:43:05 +0800
committerYao Qi <yao@codesourcery.com>2014-10-29 21:43:05 +0800
commit0ea4d52e4396f6fdf44e6b0d5a21db17cad41ec7 (patch)
tree83eef637357f1d650f7d3d653ac67033daacbaeb /gdb/python/python-config.py
parent6041179a7496602f881b6f0a8c0bc3a8f1742cb7 (diff)
downloadbinutils-0ea4d52e4396f6fdf44e6b0d5a21db17cad41ec7.zip
binutils-0ea4d52e4396f6fdf44e6b0d5a21db17cad41ec7.tar.gz
binutils-0ea4d52e4396f6fdf44e6b0d5a21db17cad41ec7.tar.bz2
Close the file in fileio.exp test
I see the following fail in fileio.exp on mingw32 host gdb, rename 1: ret = -1, errno = 13^M ^M Breakpoint 2, stop () at fileio.c:76^M 76 static void stop () {}^M (gdb) FAIL: gdb.base/fileio.exp: Rename a file the test fails to rename a file which is not expected. The previous test test_write doesn't close the file, so the rename fails as a result on Windows. This patch fixes it by closing file in test_write, and the fail goes away. rename 1: ret = 0, errno = 0 OK^M ^M Breakpoint 2, stop () at fileio.c:76^M 76 static void stop () {}^M (gdb) PASS: gdb.base/fileio.exp: Rename a file gdb/testsuite: 2014-10-29 Yao Qi <yao@codesourcery.com> * gdb.base/fileio.c (test_write): Close the file.
Diffstat (limited to 'gdb/python/python-config.py')
0 files changed, 0 insertions, 0 deletions