Fleshed out the test. No expected file yet. In manual runs the test is not
working properly yet.
Minor: function rename to better reflect its actions.
Minor: improve description and error messages in the total_system_resources
function.
Better handle resource requests that exceed the system resources: still
allow (and hope for the best), but apply correct comparison. Simple '--more'
does not work because the request may exceed limits in only some resources,
not all of them (hence, it is not '--more' and not '--less'). If such a
request encountered, overwrite the request file with the maximal (limits)
values so that the later release_resources subtracts correct values.
Minor: make sure that the script name is always defined (either the caller
name if defined or a local substitute if not).
Implement in-file versions of queue-manipulating and queue-querying
functions. Provide locked variants as well.
Implemented most of the test. Still not clear how to wrap into the mould of
comma-test-run test / expected framework. Potential problem with scheduling
because of aggressive waiting for large tasks.
Move the random function definition into the utility script. Remove
auxiliary square/cube random generators.
Minor: variable renamed for readability.
Optionally override all defaults through stdin.
Make the former test an application and provide two simple wrappers to match
comma-test-run expectations. Output primitive, just passes or not. Look into
stderr.log files if failing.
One more test. Remove all output and expected files, just enough for the
script to exit 0.
Add a test indicating a potential bug in comma_trap --kill-recursive. It is
a race condition and takes several runs to trigger. Also, the test does not
(so far) indicate the problem by exit status. Instead, watch out for stderr
messages starting with the word "Bug".