mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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.
This commit is contained in:
parent
973695d6bb
commit
efe24f056f
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user