Usage of xsd2ttcn in regression test overwrites modules under version control
Submitted by Botond Baranyi
Link to original bug (#498564)
Description
The regression tests in folder XML/XmlWorkflow test the xsd2ttcn tool, which generates files 'XSD.ttcn' and 'UsefulTtcn3Types.ttcn' every time it is invoked. However, this regression test has its own 'XSD.ttcn' and 'UsefulTtcn3Types.ttcn' files that it uses for testing XML encoding and decoding. These files are in folder 'src' (XML/XmlWorkflow/src) and are both under version control (git). A symbolic link is created for them in folder 'bin' (XML/XmlWorkflow/bin). The xsd2ttcn tool's working directory is 'bin', and whenever it is invoked, it overwrites (re-generates) the two mentined TTCN files from folder 'src' (through their symbolic links). This causes the two files to be makred as 'modified' by git every time the XmlWorkflow tests are executed.
Suggested solution: Always invoke xsd2ttcn with the -p command line option, to not generate the two mentioned files.
Version: 5.5.0