Check return value in settmpdir unit test