Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests tests/make: add test for .if/.for/.i...



details:   https://anonhg.NetBSD.org/src/rev/92b25b0bd019
branches:  trunk
changeset: 370679:92b25b0bd019
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Sep 24 10:52:05 2022 +0000

description:
tests/make: add test for .if/.for/.if/.break

diffstat:

 usr.bin/make/unit-tests/directive-for-break.mk |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r b4feb5987494 -r 92b25b0bd019 usr.bin/make/unit-tests/directive-for-break.mk
--- a/usr.bin/make/unit-tests/directive-for-break.mk    Sat Sep 24 10:26:31 2022 +0000
+++ b/usr.bin/make/unit-tests/directive-for-break.mk    Sat Sep 24 10:52:05 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: directive-for-break.mk,v 1.2 2022/09/03 00:50:07 rillig Exp $
+# $NetBSD: directive-for-break.mk,v 1.3 2022/09/24 10:52:05 rillig Exp $
 #
 # Tests for .break in .for loops, which immediately terminates processing of
 # the surrounding .for loop.
@@ -44,3 +44,17 @@
 # expect+1: break outside of for loop
 .  break
 .endif
+
+
+# Since cond.c 1.335 from 2022-09-02 and before cond.c 1.338 from 2022-09-23,
+# the following paragraph generated the wrong error message '4294967294 open
+# conditionals'.
+.if 1
+.  if 2
+.    for var in value
+.      if 3
+.        break
+.      endif
+.    endfor
+.  endif
+.endif



Home | Main Index | Thread Index | Old Index