* Mon May 5 2014 Sergio Durigan Junior <sergiodj@redhat.com> - 7.7-9.fc21

- Improve testcase message for RH BZ 981154.
This commit is contained in:
Sergio Durigan Junior 2014-05-05 18:44:10 -03:00
parent 699758c055
commit 0a42762f26
2 changed files with 23 additions and 16 deletions

View File

@ -19,7 +19,7 @@ Index: gdb-7.7/gdb/testsuite/gdb.base/rhbz981154-misleading-yum-install-warning.
===================================================================
--- /dev/null
+++ gdb-7.7/gdb/testsuite/gdb.base/rhbz981154-misleading-yum-install-warning.exp
@@ -0,0 +1,93 @@
@@ -0,0 +1,97 @@
+# Copyright (C) 2014 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
@ -80,15 +80,17 @@ Index: gdb-7.7/gdb/testsuite/gdb.base/rhbz981154-misleading-yum-install-warning.
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+
+gdb_test "set build-id-verbose 1" "" \
+with_test_prefix "first run:" {
+ gdb_test "set build-id-verbose 1" "" \
+ "set build-id-verbose"
+
+gdb_test "set debug-file-directory ${objdir}/${subdir}" "" \
+ "set debug-file-directory to ${objdir}/${subdir}"
+ gdb_test "set debug-file-directory ${objdir}/${subdir}" "" \
+ "set debug-file-directory"
+
+gdb_test "core-file ${objdir}/${subdir}/gcore.test" \
+ gdb_test "core-file ${objdir}/${subdir}/gcore.test" \
+ "Missing separate debuginfo for the main executable file\r\nTry: yum --enablerepo='\\*debug\\*' install $objdir/$subdir/$build_id_without_debug\r\n.*" \
+ "test first yum warning to install $objdir/$subdir/$build_id_without_debug"
+ "test first yum warning"
+}
+
+# Now we define and create our .build-id
+file mkdir [file dirname ${objdir}/${subdir}/${build_id_without_debug}]
@ -101,15 +103,17 @@ Index: gdb-7.7/gdb/testsuite/gdb.base/rhbz981154-misleading-yum-install-warning.
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+
+gdb_test "set build-id-verbose 1" "" \
+with_test_prefix "second run:" {
+ gdb_test "set build-id-verbose 1" "" \
+ "set build-id-verbose"
+
+gdb_test "set debug-file-directory ${objdir}/${subdir}" "" \
+ "set debug-file-directory to ${objdir}/${subdir}"
+ gdb_test "set debug-file-directory ${objdir}/${subdir}" "" \
+ "set debug-file-directory"
+
+gdb_test "core-file ${objdir}/${subdir}/gcore.test" \
+ gdb_test "core-file ${objdir}/${subdir}/gcore.test" \
+ "Missing separate debuginfo for the main executable file\r\nTry: yum --enablerepo='\\*debug\\*' install $binfile\r\n.*" \
+ "test second yum warning to install $binfile"
+ "test second yum warning"
+}
+
+# Leaving the link there will cause breakage in the next run.
+remote_exec build "rm -f ${objdir}/${subdir}/${build_id_without_debug}"

View File

@ -39,7 +39,7 @@ Version: 7.7
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
Release: 8%{?dist}
Release: 9%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
Group: Development/Debuggers
@ -1382,6 +1382,9 @@ fi
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
%changelog
* Mon May 5 2014 Sergio Durigan Junior <sergiodj@redhat.com> - 7.7-9.fc21
- Improve testcase message for RH BZ 981154.
* Mon May 5 2014 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.7-8.fc21
- Fix TLS access for -static -pthread (BZ 1080660).