@@ -172,15 +172,14 @@ end invokeTest
172172
173173-- Add the unit test library stack and the input library to the backscripts
174174private command invokeLoadLibrary pInfo
175- -- Compute the filename of the library stack and load it
176- local tStackname
177- put invokeGetLibraryStack(pInfo ) into tStackFile
178- put the name of stack tStackFile into tStackName
179-
180- send "revLoadLibrary" to stack tStackname
181-
182- -- Use the test input library
183- start using stack invokeGetInputLibraryStack(pInfo )
175+ local tLibrary , tStackName , tStackFile
176+ repeat for each item tLibrary in "_testlib,_inputlib"
177+ -- Compute the filename of the library stack and load it
178+ put invokeGetStackFolder(pInfo ) & slash & tLibrary & ".livecodescript" into tStackFile
179+ put the name of stack tStackFile into tStackName
180+
181+ send "revLoadLibrary" to stack tStackname
182+ end repeat
184183end invokeLoadLibrary
185184
186185private function invokeGetStackFolder pInfo
@@ -191,15 +190,6 @@ private function invokeGetStackFolder pInfo
191190 return item 1 to - 2 of tFilename
192191end invokeGetStackFolder
193192
194- -- Return the filename of the unit test library stack
195- private function invokeGetLibraryStack pInfo
196- return invokeGetStackFolder(pInfo ) & slash & "_testlib.livecodescript"
197- end invokeGetLibraryStack
198-
199- private function invokeGetInputLibraryStack pInfo
200- return invokeGetStackFolder(pInfo ) & slash & "_inputlib.livecodescript"
201- end invokeGetInputLibraryStack
202-
203193-- --------------------------------------------------------------
204194-- Support for running tests
205195-- --------------------------------------------------------------
0 commit comments