neopragma / cobol-unit-test

Unit testing framework and sample code for batch Cobol programs.
GNU General Public License v3.0
117 stars 36 forks source link

Mix of PARA and FILE mocks causes corrupt output under certain conditions #57

Closed neopragma closed 9 years ago

neopragma commented 9 years ago

When more than one consecutive paragraph mock is followed by one or more file mocks, the generated code for the first file mock following the paragraph mocks has the file status code inserted into the middle of the previous generated source line. Changing the sequence of mock specifications in the test case file can make the error go away, but this may not be useful depending on the order in which mocks need to be defined to support the test cases.

neopragma commented 9 years ago

A certain sequence of test statements causes one table in WORKING-STORAGE to overlay another. This is due to a problem with the way the MOCK-IX index is handled during processing of paragraph mocks. Fix is in progress.

neopragma commented 9 years ago

Fixed.