From 218c2655603748b844dcaf103e34fd14d8ee8aef Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 11 Jul 2014 17:26:42 +0200 Subject: [PATCH] Fix false argv0-symlink.exp FAIL running under a very long directory name Starting program: /home/jkratoch/redhat/gdb-test-fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff/gdb/testsuite/gdb.base/argv0-symlink-filelink ^M [...] (gdb) print argv[0]^M $1 = 0x7fffffffda39 "/home/jkratoch/redhat/gdb-test-", 'f' ...^M (gdb) FAIL: gdb.base/argv0-symlink.exp: kept file symbolic link name after "set print repeats 10000": print argv[0]^M $1 = 0x7fffffffda39 "/home/jkratoch/redhat/gdb-test-fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"...^M (gdb) FAIL: gdb.base/argv0-symlink.exp: kept file symbolic link name after "set print elements 10000": print argv[0]^M $1 = 0x7fffffffda39 "/home/jkratoch/redhat/gdb-test-fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff/gdb/testsuite/gdb.base/argv0-symlink-filelink"^M (gdb) PASS: gdb.base/argv0-symlink.exp: kept file symbolic link name gdb/testsuite/ 2014-07-11 Jan Kratochvil Fix false FAIL running under a very long directory name. * gdb.base/argv0-symlink.exp: Add "set print repeats 10000" and "set print elements 10000". Twice. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.base/argv0-symlink.exp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 74f7bce11e5..253eeeb1f35 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-07-11 Jan Kratochvil + + Fix false FAIL running under a very long directory name. + * gdb.base/argv0-symlink.exp: Add "set print repeats 10000" + and "set print elements 10000". Twice. + 2014-07-11 Yao Qi * gdb.base/exprs.exp: "set print symbol off". diff --git a/gdb/testsuite/gdb.base/argv0-symlink.exp b/gdb/testsuite/gdb.base/argv0-symlink.exp index 0e0202dcf01..d849b4c2fef 100644 --- a/gdb/testsuite/gdb.base/argv0-symlink.exp +++ b/gdb/testsuite/gdb.base/argv0-symlink.exp @@ -36,6 +36,9 @@ if ![runto_main] { return -1 } +gdb_test_no_output "set print repeats 10000" +gdb_test_no_output "set print elements 10000" + gdb_test {print argv[0]} "/$filelink\"" $test # For a link named /PATH/TO/DIR/LINK, we want to check the output @@ -67,6 +70,9 @@ if ![runto_main] { return -1 } +gdb_test_no_output "set print repeats 10000" +gdb_test_no_output "set print elements 10000" + # gdbserver does not have this issue. if ![is_remote target] { setup_kfail "*-*-*" gdb/15934 -- 2.30.2