[tor-commits] [tor/master] Refactor test_utils_general() to fix Coverity warnings