Stat information is not obtained properly in test test_config_check_or_create_data_subdir
The test test_config_check_or_create_data_subdir makes a stat call that is asserted to fail, but then a successful stat call is not made at all. This means that the stat information st is not initialized, and can potentially contain garbage which would mean the permission information used by chmod would be invalid and the chmod call would fail.
The attached patch simply executes stat again (as well as changes test_fail_msg to tt_abort_perror, so information why a step has failed can be better communicated).
Trac:
Username: _x3j11