From b88a17103b44629da10f5036f474c9d6ae2c0957 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sun, 11 Oct 2026 22:49:14 +0100 Subject: [PATCH] check.sh: the compiler may follow an older report while it catches up d991306 made the report 2026-10.11, but raz still says 10.10, which is true, so the version check failed. The report names the version the compiler follows, and check.sh takes that one when it is there. Co-Authored-By: Claude Opus 5.5 (1M context) --- diff --git a/doc/raz.md b/doc/raz.md index afb39cc..22c9ca7 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -11,8 +11,9 @@ This is version 2026-10.11 of the report; section 12 says what each version changed. It is a thaw the owner chose, for a language anyone -can build again, and it breaks programs written for 2026-10.10. The -compiler doesn't follow it yet: it still follows 2026-10.10. +can build again, and it breaks programs written for 2026-10.10. +The compiler follows version 2026-10.10 until it is brought to this +one. The language is frozen, softly, from this version on: it changes only to mend a defect, and its library grows only by what breaks no program diff --git a/test/check.sh b/test/check.sh index 530175e..e945bdf 100755 --- a/test/check.sh +++ b/test/check.sh @@ -86,7 +86,11 @@ fi done # the report's version is the one the compiler says it follows +# the version the compiler follows: the report's, or one it names while +# the compiler catches up want=$(sed -n 's/^This is version \([0-9.-]*\) of the report.*/\1/p' doc/raz.md) +lag=$(sed -n 's/^The compiler follows version \([0-9.-]*\) until.*/\1/p' doc/raz.md) +want=${lag:-$want} if ./raz --version | grep -qF "report $want"; then pass=$((pass + 1)) else echo "FAIL raz --version: not report $want"; fail=$((fail + 1)); fi