Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Use = instead of == for better portability
@ 2020-05-23 18:17 Christian Biesinger
  2020-05-23 20:47 ` Tom Tromey
  2020-05-24  8:21 ` Tom de Vries
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Biesinger @ 2020-05-23 18:17 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

Reported by sobukus on IRC.

gdb/testsuite/ChangeLog:

        * Makefile.in: Use = instead of = for test for
        portability.
---
 gdb/testsuite/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

[-- Attachment #2: 0001-Use-instead-of-for-better-portability.patch --]
[-- Type: application/octet-stream, Size: 1227 bytes --]

From 4a39f2fd673b895d26a3aac01c5d4411718c635b Mon Sep 17 00:00:00 2001
From: Christian Biesinger <cbiesinger@google.com>
Date: Sat, 23 May 2020 13:09:16 -0500
Subject: [PATCH] Use = instead of == for better portability

Reported by sobukus on IRC.

gdb/testsuite/ChangeLog:

        * Makefile.in: Use = instead of = for test for
	portability.
---
 gdb/testsuite/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in
index 0ba2eb42d5..dbe95b3491 100644
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -209,7 +209,7 @@ check-single-racy:
 	-rm -rf cache racy_outputs temp
 	mkdir -p racy_outputs; \
 	racyiter="$(RACY_ITER)"; \
-	test "x$$racyiter" == "x" && \
+	test "x$$racyiter" = "x" && \
 	  racyiter=$(DEFAULT_RACY_ITER); \
 	if test $$racyiter -lt 2 ; then \
 	  echo "RACY_ITER must be at least 2."; \
@@ -239,7 +239,7 @@ check-parallel:
 check-parallel-racy:
 	-rm -rf cache racy_outputs temp
 	racyiter="$(RACY_ITER)"; \
-	test "x$$racyiter" == "x" && \
+	test "x$$racyiter" = "x" && \
 	  racyiter=$(DEFAULT_RACY_ITER); \
 	if test $$racyiter -lt 2 ; then \
 	  echo "RACY_ITER must be at least 2."; \
-- 
2.26.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-26 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-23 18:17 [PATCH] Use = instead of == for better portability Christian Biesinger
2020-05-23 20:47 ` Tom Tromey
2020-05-24  8:21 ` Tom de Vries
2020-05-26 17:00   ` Christian Biesinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox