zopencommunity / c3270port

A 3270 terminal emulator
Apache License 2.0
4 stars 0 forks source link

Running the testcases hangs the build #20

Open MikeFultonDev opened 5 months ago

MikeFultonDev commented 5 months ago

To enable tests to be run: Add:

export ZOPEN_CHECK_OPTS="-j\$ZOPEN_NUM_JOBS test"

I would recommend running with (export ZOPEN_NUM_JOBS=1; zopen build)

Testing can't be turned on by default because it hangs at the end waiting because there are open sockets from some failing tests.

If you run it by hand, it will run through all the tests and print the results, but the unit test framework process will hang.

If you then look at the state of the processes, you will see there are a number of open sockets. To force finish the build, you can kill -9 the python unit test process.

Approaches one could take:

MikeFultonDev commented 5 months ago

Use the 'runtests' branch as a starter point.

MikeFultonDev commented 4 months ago

fixed in PR #22