mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-24 07:16:43 +00:00
2e0cb4e6dc
If runTests() terminated with a FATAL condition, the cause was not always apparent, because the error message usually got overwritten by the test progress output on the user's terminal. To fix this, the main loop's standard error is now collected in a temporary file which is sent to standard error just before exit. The test framework was not always handling its internal FATAL error code (255) correctly, so this has been fixed. One cause of a FATAL termination was if a test's unique temporary directory, which was based on its Process ID, already existed. Anything that left a temporary directory behind increased the likelihood of a FATAL in a subsequent test run. (For example, one keyring test case was not killing its Serval DNA daemon, and the daemon was re-creating its instance directory before eventually terminating itself. This test case has been fixed.) The test framework now allocates its temporary directory by re-trying different random numbers until mkdir(1) succeeds, and only fataling after 20 failures. |
||
---|---|---|
.. | ||
testdata | ||
all | ||
alljava | ||
compatibility | ||
config | ||
directory_service | ||
dnahelper | ||
dnaprotocol | ||
framework | ||
jni | ||
keyring | ||
keyringjava | ||
keyringrestful | ||
keyringswift | ||
logging | ||
mdp | ||
meshmb | ||
meshmbrestful | ||
meshms | ||
meshmsjava | ||
meshmsrestful | ||
msp | ||
rhizomeall | ||
rhizomechannels | ||
rhizomejava | ||
rhizomeops | ||
rhizomeprotocol | ||
rhizomerestful | ||
rhizomestress | ||
routing | ||
server | ||
vomp |