From cf3f613f3dfeff8b990ea1b30b262377fd867cdc Mon Sep 17 00:00:00 2001 From: Wifinigel <84858080+nigelbowden@users.noreply.github.com> Date: Sun, 23 Jul 2023 07:42:03 +0100 Subject: [PATCH] add mising semi-colon & fix return array --- scripts/v6/ch10-07-bad-script.rsc | 4 ++-- scripts/v6/ch10-08-bad-script.rsc | 6 +++--- scripts/v7/ch10-07-bad-script.rsc | 4 ++-- scripts/v7/ch10-08-bad-script.rsc | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/v6/ch10-07-bad-script.rsc b/scripts/v6/ch10-07-bad-script.rsc index 804f021..19ba9ef 100644 --- a/scripts/v6/ch10-07-bad-script.rsc +++ b/scripts/v6/ch10-07-bad-script.rsc @@ -3,7 +3,7 @@ # A simple script to perform a series of tests on a # list of web sites. -:global Filename "ch10-07-bad-script.rsc" +:global Filename "ch10-07-bad-script.rsc"; # function to log error messages :global LogMessageFunc do={ @@ -80,7 +80,7 @@ } on-error={ $LogMessageFunc ("GetWebPageFunc: unable to retrieve site: \ $SiteName !"); - :return { "*** test failed ***" } + :return { "duration"="*** test failed ***" } } } diff --git a/scripts/v6/ch10-08-bad-script.rsc b/scripts/v6/ch10-08-bad-script.rsc index 850141d..30aa87f 100644 --- a/scripts/v6/ch10-08-bad-script.rsc +++ b/scripts/v6/ch10-08-bad-script.rsc @@ -3,7 +3,7 @@ # A simple script to perform a series of tests on a # list of web sites. -:global Filename "ch10-08-bad-script.rsc" +:global Filename "ch10-08-bad-script.rsc"; # set DEBUG to "true" for script debugging output, # "false" for normal operation @@ -91,7 +91,7 @@ ([:len $SiteName] < 6)) do={ $LogMessageFunc ("GetWebPageFunc: arg value $SiteName not a \ valid string!"); - :return { "*** test failed ***" }; + :return { "duration"="*** test failed ***" } } do { @@ -100,7 +100,7 @@ } on-error { $LogMessageFunc ("GetWebPageFunc: unable to retrieve site: \ $SiteName !"); - return { "*** test failed ***" }; + :return { "duration"="*** test failed ***" } } } diff --git a/scripts/v7/ch10-07-bad-script.rsc b/scripts/v7/ch10-07-bad-script.rsc index 804f021..19ba9ef 100644 --- a/scripts/v7/ch10-07-bad-script.rsc +++ b/scripts/v7/ch10-07-bad-script.rsc @@ -3,7 +3,7 @@ # A simple script to perform a series of tests on a # list of web sites. -:global Filename "ch10-07-bad-script.rsc" +:global Filename "ch10-07-bad-script.rsc"; # function to log error messages :global LogMessageFunc do={ @@ -80,7 +80,7 @@ } on-error={ $LogMessageFunc ("GetWebPageFunc: unable to retrieve site: \ $SiteName !"); - :return { "*** test failed ***" } + :return { "duration"="*** test failed ***" } } } diff --git a/scripts/v7/ch10-08-bad-script.rsc b/scripts/v7/ch10-08-bad-script.rsc index 850141d..30aa87f 100644 --- a/scripts/v7/ch10-08-bad-script.rsc +++ b/scripts/v7/ch10-08-bad-script.rsc @@ -3,7 +3,7 @@ # A simple script to perform a series of tests on a # list of web sites. -:global Filename "ch10-08-bad-script.rsc" +:global Filename "ch10-08-bad-script.rsc"; # set DEBUG to "true" for script debugging output, # "false" for normal operation @@ -91,7 +91,7 @@ ([:len $SiteName] < 6)) do={ $LogMessageFunc ("GetWebPageFunc: arg value $SiteName not a \ valid string!"); - :return { "*** test failed ***" }; + :return { "duration"="*** test failed ***" } } do { @@ -100,7 +100,7 @@ } on-error { $LogMessageFunc ("GetWebPageFunc: unable to retrieve site: \ $SiteName !"); - return { "*** test failed ***" }; + :return { "duration"="*** test failed ***" } } }