From c5b21f1f1cfaabf1431010c314aadcc0b7b708f0 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 17 Jun 2020 18:08:57 -0500 Subject: Allow testing to continue after an undefined command is called --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 209e9c4..4354422 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ Changes since 1.6.2: should use this proc. The 'is_remote' proc is deprecated. 2. runtest now accepts --local_init and --global_init options to override the default of reading "site.exp". See the manual for details. +X. runtest now accepts a --keep_going option to continue with other test + scripts after a test script invokes an undefined command. 3. A utility procedure relative_filename has been added. This procedure computes a relative file name to a given destination from a given base. 4. The utility procedure 'grep' now accepts a '-n' option that -- cgit v1.1 From d45310cd257d399b8208fa9907f7c9f2f4ac7eda Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Thu, 18 Jun 2020 18:52:33 -0500 Subject: Use consistent behavior for Tcl errors in test scripts --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 4354422..619f0ff 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,9 @@ Changes since 1.6.2: the default of reading "site.exp". See the manual for details. X. runtest now accepts a --keep_going option to continue with other test scripts after a test script invokes an undefined command. +X. Unless the --keep_going option is used, runtest now aborts if a test + script fails with any Tcl error. Previously, only calling an undefined + procedure would cause the test run to abort. 3. A utility procedure relative_filename has been added. This procedure computes a relative file name to a given destination from a given base. 4. The utility procedure 'grep' now accepts a '-n' option that -- cgit v1.1 From f7dea4fbb09dba4129b1621829f534e6507653f7 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 19 Jun 2020 14:36:58 +0200 Subject: Reword NEWS entries [Following comments from Jacob Bachmeyer] The NEWS entries changed in this patch were originally written separately and had not been rethought when the general handling of Tcl errors was tightened. Another thanks to Tom de Vries for catching this. --- NEWS | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 619f0ff..abae60b 100644 --- a/NEWS +++ b/NEWS @@ -7,11 +7,10 @@ Changes since 1.6.2: should use this proc. The 'is_remote' proc is deprecated. 2. runtest now accepts --local_init and --global_init options to override the default of reading "site.exp". See the manual for details. +X. runtest now aborts if a test script fails with any Tcl error. Previously, + only calling an undefined procedure would cause the test run to abort. X. runtest now accepts a --keep_going option to continue with other test - scripts after a test script invokes an undefined command. -X. Unless the --keep_going option is used, runtest now aborts if a test - script fails with any Tcl error. Previously, only calling an undefined - procedure would cause the test run to abort. + scripts after a test script fails with a Tcl error. 3. A utility procedure relative_filename has been added. This procedure computes a relative file name to a given destination from a given base. 4. The utility procedure 'grep' now accepts a '-n' option that -- cgit v1.1 From 5bc0f51cebd001b6ba92cdd3e98e97111d96cccb Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 24 Jun 2020 21:14:28 -0500 Subject: Add option to stop immediately at Tcl errors and continue by default --- NEWS | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index abae60b..dcb731f 100644 --- a/NEWS +++ b/NEWS @@ -7,10 +7,16 @@ Changes since 1.6.2: should use this proc. The 'is_remote' proc is deprecated. 2. runtest now accepts --local_init and --global_init options to override the default of reading "site.exp". See the manual for details. -X. runtest now aborts if a test script fails with any Tcl error. Previously, - only calling an undefined procedure would cause the test run to abort. +X. runtest now responds consistently to all Tcl errors and generates an + UNRESOLVED result when a test script aborts. Previously, calling an + undefined procedure would cause the test run to abort while other Tcl + errors produced only an easily-ignored message. X. runtest now accepts a --keep_going option to continue with other test - scripts after a test script fails with a Tcl error. + scripts after a test script fails with a Tcl error. If you have + automated systems that run tests and need to carry on after Tcl errors, + now is the time to add this option to your configuration. +X. runtest now accepts a --no_keep_going option to stop immediately when a + test script aborts. This is planned to become the default in 1.7. 3. A utility procedure relative_filename has been added. This procedure computes a relative file name to a given destination from a given base. 4. The utility procedure 'grep' now accepts a '-n' option that -- cgit v1.1 From a149ae3e95dd7a7ec6f7f4bbda64994cffa9e37b Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Fri, 26 Jun 2020 20:31:13 -0500 Subject: Withdraw proposed --keep_going and --no_keep_going options --- NEWS | 6 ------ 1 file changed, 6 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index dcb731f..2701d96 100644 --- a/NEWS +++ b/NEWS @@ -11,12 +11,6 @@ X. runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts. Previously, calling an undefined procedure would cause the test run to abort while other Tcl errors produced only an easily-ignored message. -X. runtest now accepts a --keep_going option to continue with other test - scripts after a test script fails with a Tcl error. If you have - automated systems that run tests and need to carry on after Tcl errors, - now is the time to add this option to your configuration. -X. runtest now accepts a --no_keep_going option to stop immediately when a - test script aborts. This is planned to become the default in 1.7. 3. A utility procedure relative_filename has been added. This procedure computes a relative file name to a given destination from a given base. 4. The utility procedure 'grep' now accepts a '-n' option that -- cgit v1.1 From 61dc0cafad8845b3c668940ed2e574bd503d410f Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Mon, 29 Jun 2020 21:51:38 -0500 Subject: Add separator lines when repeating error messages --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 2701d96..5267c25 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,9 @@ X. runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts. Previously, calling an undefined procedure would cause the test run to abort while other Tcl errors produced only an easily-ignored message. +X. runtest now collects Tcl errors encountered during a test run and prints + the collected errors a second time at the end of the test run after the + summary. Separator lines containing more than 10 hyphens are included. 3. A utility procedure relative_filename has been added. This procedure computes a relative file name to a given destination from a given base. 4. The utility procedure 'grep' now accepts a '-n' option that -- cgit v1.1