public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/toolchain/binutils-patches:master commit in: 9999/
Date: Fri, 01 Aug 2025 08:17:53 +0000 (UTC)	[thread overview]
Message-ID: <1754036261.f05ec3bd6ad1e7830fec94c1aa1770a9a411bd5c.sam@gentoo> (raw)

commit:     f05ec3bd6ad1e7830fec94c1aa1770a9a411bd5c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  1 08:17:41 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug  1 08:17:41 2025 +0000
URL:        https://gitweb.gentoo.org/proj/toolchain/binutils-patches.git/commit/?id=f05ec3bd

9999: add fix for race condition in gprof tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...st-gmon-gprof-l.sh-after-tst-gmon-gprof.s.patch | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/9999/0006-gprof-Run-tst-gmon-gprof-l.sh-after-tst-gmon-gprof.s.patch b/9999/0006-gprof-Run-tst-gmon-gprof-l.sh-after-tst-gmon-gprof.s.patch
new file mode 100644
index 0000000..1076168
--- /dev/null
+++ b/9999/0006-gprof-Run-tst-gmon-gprof-l.sh-after-tst-gmon-gprof.s.patch
@@ -0,0 +1,57 @@
+https://inbox.sourceware.org/binutils/20250731133439.665517-1-hjl.tools@gmail.com/
+
+From d752cad608e8d508e85e949a1ac0cca3b3cb3557 Mon Sep 17 00:00:00 2001
+Message-ID: <d752cad608e8d508e85e949a1ac0cca3b3cb3557.1754036184.git.sam@gentoo.org>
+From: "H.J. Lu" <hjl.tools@gmail.com>
+Date: Thu, 31 Jul 2025 06:34:39 -0700
+Subject: [PATCH] gprof: Run tst-gmon-gprof-l.sh after tst-gmon-gprof.sh
+
+Both tst-gmon-gprof.sh and tst-gmon-gprof-l.sh generate gmon.out and
+process it.  Run tst-gmon-gprof-l.sh after tst-gmon-gprof.sh to avoid
+the race condition.
+
+	* testsuite/Makefile.am (tst-gmon-gprof-l.out): Depend on
+	tst-gmon-gprof.out.
+	* testsuite/Makefile.in: Regenerated.
+
+Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
+---
+ gprof/testsuite/Makefile.am | 4 +++-
+ gprof/testsuite/Makefile.in | 4 +++-
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/gprof/testsuite/Makefile.am b/gprof/testsuite/Makefile.am
+index 0c80b12e6e4..7ab1c2ea6b7 100644
+--- a/gprof/testsuite/Makefile.am
++++ b/gprof/testsuite/Makefile.am
+@@ -37,7 +37,9 @@ tst-gmon-gprof.out: tst-gmon$(EXEEXT) $(GPROF)
+ 
+ check_SCRIPTS += tst-gmon-gprof-l.sh
+ check_DATA += tst-gmon-gprof-l.out
+-tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF)
++# Run tst-gmon-gprof-l.sh after tst-gmon-gprof.sh to avoid the race
++# condition since they both generate gmon.out.
++tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF) tst-gmon-gprof.out
+ 	$(srcdir)/tst-gmon-gprof-l.sh $(GPROF) tst-gmon$(EXEEXT)
+ 
+ endif NATIVE
+diff --git a/gprof/testsuite/Makefile.in b/gprof/testsuite/Makefile.in
+index 2ac5f241012..ab8a2cbb16e 100644
+--- a/gprof/testsuite/Makefile.in
++++ b/gprof/testsuite/Makefile.in
+@@ -884,7 +884,9 @@ uninstall-am:
+ @NATIVE_TRUE@	$(LINK) tst-gmon.$(OBJEXT)
+ @NATIVE_TRUE@tst-gmon-gprof.out: tst-gmon$(EXEEXT) $(GPROF)
+ @NATIVE_TRUE@	$(srcdir)/tst-gmon-gprof.sh $(GPROF) tst-gmon$(EXEEXT)
+-@NATIVE_TRUE@tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF)
++# Run tst-gmon-gprof-l.sh after tst-gmon-gprof.sh to avoid the race
++# condition since they both generate gmon.out.
++@NATIVE_TRUE@tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF) tst-gmon-gprof.out
+ @NATIVE_TRUE@	$(srcdir)/tst-gmon-gprof-l.sh $(GPROF) tst-gmon$(EXEEXT)
+ 
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+
+base-commit: 711667472193c31b67eb3c190d7c91f660ac4bb0
+-- 
+2.50.1
+


             reply	other threads:[~2025-08-01  8:17 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-01  8:17 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-10  5:41 [gentoo-commits] proj/toolchain/binutils-patches:master commit in: 9999/ Sam James
2025-10-10  5:28 Sam James
2025-10-10  5:28 Sam James
2025-10-10  5:25 Sam James
2025-10-10  4:57 Sam James
2025-08-29 13:40 Sam James
2025-08-28 20:21 Sam James
2025-08-28 13:51 Sam James
2025-08-28  5:32 Sam James
2025-08-27 16:26 Sam James
2025-08-27  4:05 Sam James
2025-08-27  2:49 Sam James
2025-08-25  2:49 Sam James
2025-08-20 23:30 Sam James
2025-08-20 22:17 Sam James
2025-08-20 22:17 Sam James
2025-08-20 20:44 Sam James
2025-08-20  4:39 Sam James
2025-08-19 20:54 Sam James
2025-08-19 17:11 Sam James
2025-08-19 16:28 Sam James
2025-08-19 10:51 Sam James
2025-08-19  3:48 Sam James
2025-08-18 20:21 Sam James
2025-08-18 20:21 Sam James
2025-08-18 20:19 Sam James
2025-08-18 15:39 Sam James
2025-08-17 20:58 Sam James
2025-08-17 19:45 Sam James
2025-08-06 13:19 Sam James
2025-08-06  4:07 Sam James
2025-08-06  1:08 Sam James
2025-08-05 20:21 Sam James
2025-08-04 21:43 Sam James
2025-08-04 21:05 Sam James
2025-08-04 15:32 Sam James
2025-08-04 11:06 Sam James
2025-08-03 23:43 Sam James
2025-08-01 11:28 Sam James
2025-07-31 11:39 Sam James
2025-07-28 12:24 Andreas K. Hüttel
2025-07-24 17:25 Sam James
2025-07-24  4:03 Sam James
2025-07-24  3:46 Sam James
2025-07-23 22:37 Sam James
2025-06-14 21:52 Sam James
2025-06-13  8:00 Sam James
2025-05-14  7:14 Sam James
2025-05-14  3:59 Sam James
2025-05-05  9:46 Sam James
2025-05-05  3:06 Sam James
2025-05-04 10:15 Sam James
2025-04-10 17:35 Sam James
2025-04-09  2:24 Sam James
2025-04-08  0:36 Sam James
2025-03-29 14:18 Sam James
2025-03-12 20:21 Sam James
2025-03-06 12:54 Sam James
2025-03-06  4:54 Sam James
2025-02-03 18:02 Andreas K. Hüttel
2025-01-14  2:09 Sam James
2025-01-13  6:11 Sam James
2025-01-02 13:48 Sam James
2025-01-01 14:05 Sam James
2024-12-26  1:21 Sam James
2024-12-24  6:27 Sam James
2024-12-21  0:09 Sam James
2024-08-03 22:43 Andreas K. Hüttel
2024-06-29 17:05 Andreas K. Hüttel
2024-06-29 16:32 Andreas K. Hüttel
2024-06-29 16:32 Andreas K. Hüttel
2024-06-28 21:48 Andreas K. Hüttel
2023-10-27  0:44 Sam James
2023-10-27  0:44 Sam James
2023-07-30 14:49 Andreas K. Hüttel
2023-07-28 16:23 Andreas K. Hüttel
2023-06-30  9:21 WANG Xuerui
2023-04-02 11:44 Andreas K. Hüttel
2023-01-05 16:22 Andreas K. Hüttel
2023-01-05 16:21 Andreas K. Hüttel
2023-01-03 23:03 Andreas K. Hüttel
2023-01-02 23:50 Andreas K. Hüttel
2022-10-08 12:15 WANG Xuerui
2022-07-29  7:55 WANG Xuerui
2022-01-15 22:27 Andreas K. Hüttel
2021-08-17 20:07 Andreas K. Hüttel
2021-07-30 23:25 Andreas K. Hüttel
2021-07-24 20:57 Andreas K. Hüttel
2021-07-20 19:53 Andreas K. Hüttel
2021-07-20 19:50 Andreas K. Hüttel
2021-07-06  7:04 Sergei Trofimovich
2021-07-06  7:04 Sergei Trofimovich
2021-07-06  7:04 Sergei Trofimovich
2020-07-25 17:27 Andreas K. Hüttel
2020-07-25 12:26 Andreas K. Hüttel
2020-07-25 12:23 Andreas K. Hüttel
2020-07-25 12:20 Andreas K. Hüttel
2020-05-19 21:12 Andreas K. Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1754036261.f05ec3bd6ad1e7830fec94c1aa1770a9a411bd5c.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox