* gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir)
(do_syscall_tests_without_xml): Set data-directory to /the/path/to/nowhere.
This commit is contained in:
parent
e94d449d6f
commit
fc30d5e03f
2 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2009-11-22 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir)
|
||||||
|
(do_syscall_tests_without_xml): Set data-directory to
|
||||||
|
/the/path/to/nowhere.
|
||||||
|
|
||||||
2009-11-21 Pedro Alves <pedro@codesourcery.com>
|
2009-11-21 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* gdb.threads/local-watch-wrong-thread.c,
|
* gdb.threads/local-watch-wrong-thread.c,
|
||||||
|
|
|
@ -258,6 +258,10 @@ proc test_catch_syscall_fail_nodatadir {} {
|
||||||
# Sanitizing.
|
# Sanitizing.
|
||||||
delete_breakpoints
|
delete_breakpoints
|
||||||
|
|
||||||
|
# Make sure GDB doesn't load the syscalls xml from the system data
|
||||||
|
# directory.
|
||||||
|
gdb_test "set data-directory /the/path/to/nowhere" ""
|
||||||
|
|
||||||
# Testing to see if we receive a warning when calling "catch syscall"
|
# Testing to see if we receive a warning when calling "catch syscall"
|
||||||
# without XML support (without datadir).
|
# without XML support (without datadir).
|
||||||
set thistest "Catch syscall displays a warning when there is no XML support (no datadir set)"
|
set thistest "Catch syscall displays a warning when there is no XML support (no datadir set)"
|
||||||
|
@ -382,9 +386,9 @@ proc test_catch_syscall_with_wrong_args_noxml {} {
|
||||||
proc do_syscall_tests_without_xml {} {
|
proc do_syscall_tests_without_xml {} {
|
||||||
global gdb_prompt srcdir
|
global gdb_prompt srcdir
|
||||||
|
|
||||||
# In this case, we don't need to set GDB's datadir because
|
# Make sure GDB doesn't load the syscalls xml from the system data
|
||||||
# we want GDB to display only numbers, not names. So, let's
|
# directory.
|
||||||
# begin with the tests.
|
gdb_test "set data-directory /the/path/to/nowhere" ""
|
||||||
|
|
||||||
# Let's test if we can catch syscalls without XML support.
|
# Let's test if we can catch syscalls without XML support.
|
||||||
# We should succeed, but GDB is not supposed to print syscall names.
|
# We should succeed, but GDB is not supposed to print syscall names.
|
||||||
|
|
Loading…
Reference in a new issue