void testsuite_binary_init(void) { testsuite_binary_tmp = i_strconcat (testsuite_tmp_dir_get(), "/binaries", NULL); if ( mkdir(testsuite_binary_tmp, 0700) < 0 ) { i_fatal("failed to create temporary directory '%s': %m.", testsuite_binary_tmp); } }
void testsuite_smtp_init(void) { pool_t pool; testsuite_smtp_pool = pool = pool_alloconly_create("testsuite_smtp", 8192); testsuite_smtp_tmp = p_strconcat (pool, testsuite_tmp_dir_get(), "/smtp", NULL); if ( mkdir(testsuite_smtp_tmp, 0700) < 0 ) { i_fatal("failed to create temporary directory '%s': %m.", testsuite_smtp_tmp); } p_array_init(&testsuite_smtp_messages, pool, 16); }