diff options
author | Kevin Buettner <kevinb@redhat.com> | 2020-08-11 09:36:12 -0700 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2020-08-31 18:57:35 -0700 |
commit | efe24f056fd7dd28d231b34c4b1fc5e6aaca4168 (patch) | |
tree | 8af505cf8db24ee11f59f112fadde66bdea9a960 | |
parent | 973695d6bb824a1e724d5ea24e7ece013109dc74 (diff) | |
download | gdb-efe24f056fd7dd28d231b34c4b1fc5e6aaca4168.zip gdb-efe24f056fd7dd28d231b34c4b1fc5e6aaca4168.tar.gz gdb-efe24f056fd7dd28d231b34c4b1fc5e6aaca4168.tar.bz2 |
corefile.exp: XFAIL warning-free test when testing on docker
When testing on docker using the AUFS storage driver, loading a core
file will often print a number of warnings. Here's an example (with
the pathname shortened somewhat):
warning: Can't open file /var/lib/docker/aufs/diff/d07..e21/lib/x86_64-linux-gnu/libc-2.27.so during file-backed mapping note processing
The "warning-free" test in gdb.base/corefile.exp will fail if any
warnings are printed, but this particular warning is unavoidable when
running in the docker environment. Fortunately, the path mentions
both "docker" and "aufs", making it easy to XFAIL this case.
gdb/testsuite/ChangeLog:
* gdb.base/corefile.exp (warning-free): XFAIL test when running
on docker w/ AUFS storage driver.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/corefile.exp | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e50b235..7e60a11 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2020-08-31 Kevin Buettner <kevinb@redhat.com> + * gdb.base/corefile.exp (warning-free): XFAIL test when running + on docker w/ AUFS storage driver. + +2020-08-31 Kevin Buettner <kevinb@redhat.com> + * gdb.base/corefile2.exp (renamed binfile): New tests. 2020-08-31 Simon Marchi <simon.marchi@efficios.com> diff --git a/gdb/testsuite/gdb.base/corefile.exp b/gdb/testsuite/gdb.base/corefile.exp index 8abf62b..b1022dd 100644 --- a/gdb/testsuite/gdb.base/corefile.exp +++ b/gdb/testsuite/gdb.base/corefile.exp @@ -324,11 +324,18 @@ corefile_test_attach # Test warning-free core file load. E.g., a Linux vDSO used to # trigger this warning: # warning: Can't read pathname for load map: Input/output error. +# +# When testing in a docker container using the AUFS storage driver, +# the kernel places host paths in the core file's NT_FILE note. XFAIL +# this case since these paths make no sense in the container. clean_restart ${testfile} set test "core-file warning-free" gdb_test_multiple "core-file $corefile" $test { + -re "warning: Can\'t open file.*\/docker\/aufs\/.*\r\n$gdb_prompt $" { + xfail $test + } -re "warning: .*\r\n.*\r\n$gdb_prompt $" { fail $test } |