I am trying to write a simple console application for the purpose of running (unit or integration) tests of existing PB code in various libraries. The idea is that I have a dedicated target XXXXTest that includes libraries from the main project and run specialised test functions, displaying the result of each function in the console.
I am currently struggling with the basic problem of having the console wait for the application to terminate. I have followed the code from https://www.rgagnon.com/pbdetails/powerbuilder-print-to-the-console.html and this works fine but the output looks like the following:
eg. the console does not wait for the termination of the process which means the process' output comes after the console returns.
Any clue on how to solve this issue?