mirror of
https://github.com/gluster/glusterfs.git
synced 2026-02-06 18:48:16 +01:00
One array allocated using alloca() was not using the right size, corrupting adjacent memory when the array was used. Also updated the related tests since they were not working correctly. The test tried to pass some data through a variable that was created in a child subshell, so the variable was empty in the parent. To implement the same functionality but supporting passing data between subshells, a new test command has been created: TEST_WITHIN. It works like TEST but if the test is not successful, it waits for some time before marking the test as bad. Once the test succeeds, whatever data the test has returned during its execution will be available in the variable TEST_OUTPUT. Fixes: #4042 Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>