]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Add system test before "set remote system-call-allowed 1" to fileio.exp
authorHui Zhu <teawater@gmail.com>
Wed, 4 Jun 2014 06:37:34 +0000 (14:37 +0800)
committerHui Zhu <teawater@gmail.com>
Wed, 4 Jun 2014 06:38:16 +0000 (14:38 +0800)
commit9f5a4cef68413e211bc765e969bf6778150231db
tree7d4225a2cfa4130213188cb205335c723eacf2c7
parent90a45c4d5f59bf512cc101802fbfb430f7e9248f
Add system test before "set remote system-call-allowed 1" to fileio.exp

This patch is update version according to the discussion in
https://www.sourceware.org/ml/gdb-patches/2009-11/msg00090.html.
If test get the target doesn't support fileio system according to the
remote log.   It will set this test as "unsupported".

Before I made this patch, I want add a check before all of tests in this
file.  But I found that the target maybe support one call but not others.
For example: my target support Fwrite, Fopen and so on.  But not Fgettimeofday.
And it doesn't support Fsystem NULL but it support Fsystem not NULL.
So I think if we want to check target support fileio, we need check them
one by one.

2014-06-04  Nathan Sidwell  <nathan@codesourcery.com>
    Hui Zhu  <hui@codesourcery.com>

* gdb.base/fileio.exp: Add test for shell not available as well as
available.
* gdb.base/fileio.c (test_system): Check for shell twice.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/fileio.c
gdb/testsuite/gdb.base/fileio.exp