• Home
  • Raw
  • Download

Lines Matching refs:tmp_out_dir

828     char tmp_out_dir[sizeof(tmp_out_dir_form)];  in TEST()  local
829 ASSERT_TRUE(NULL != mkdtemp(strcpy(tmp_out_dir, tmp_out_dir_form))); in TEST()
834 char command[sizeof(tmp_out_dir) + sizeof(logcat_cmd)]; in TEST()
835 snprintf(command, sizeof(command), logcat_cmd, tmp_out_dir); in TEST()
840 snprintf(command, sizeof(command), "ls %s 2>/dev/null", tmp_out_dir); in TEST()
879 snprintf(command, sizeof(command), "rm -rf %s", tmp_out_dir); in TEST()
886 char tmp_out_dir[sizeof(tmp_out_dir_form)]; in TEST() local
887 ASSERT_TRUE(NULL != mkdtemp(strcpy(tmp_out_dir, tmp_out_dir_form))); in TEST()
893 char command[sizeof(tmp_out_dir) + sizeof(logcat_cmd) + sizeof(log_filename)]; in TEST()
894 snprintf(command, sizeof(command), logcat_cmd, tmp_out_dir, log_filename); in TEST()
899 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
904 snprintf(command, sizeof(command), "%s/%s", tmp_out_dir, log_filename); in TEST()
907 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
938 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
945 snprintf(command, sizeof(command), logcat_cmd, tmp_out_dir, log_filename); in TEST()
948 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
954 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(tmp_out_dir), in TEST()
958 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
970 snprintf(command, sizeof(command), "%s/%s", tmp_out_dir, entry->d_name); in TEST()
1004 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
1011 char tmp_out_dir[sizeof(tmp_out_dir_form)]; in TEST() local
1012 ASSERT_TRUE(NULL != mkdtemp(strcpy(tmp_out_dir, tmp_out_dir_form))); in TEST()
1020 char command[sizeof(tmp_out_dir) + sizeof(logcat_cmd) + in TEST()
1026 tmp_out_dir, log_filename, num_val); in TEST()
1031 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
1035 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(tmp_out_dir), in TEST()
1039 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
1061 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
1066 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(tmp_out_dir), in TEST()
1070 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
1080 fprintf(stderr, "Found %s/%s!!!\n", tmp_out_dir, entry->d_name); in TEST()
1086 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()
1090 static int logrotate_count_id(const char* logcat_cmd, const char* tmp_out_dir) { in logrotate_count_id() argument
1092 char command[strlen(tmp_out_dir) + strlen(logcat_cmd) + in logrotate_count_id()
1095 snprintf(command, sizeof(command), logcat_cmd, tmp_out_dir, log_filename); in logrotate_count_id()
1102 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(tmp_out_dir), in logrotate_count_id()
1105 fprintf(stderr, "opendir(\"%s\") failed", tmp_out_dir); in logrotate_count_id()
1127 char tmp_out_dir[strlen(tmp_out_dir_form) + 1]; in TEST() local
1128 ASSERT_TRUE(NULL != mkdtemp(strcpy(tmp_out_dir, tmp_out_dir_form))); in TEST()
1130 EXPECT_EQ(logrotate_count_id(logcat_cmd, tmp_out_dir), 34); in TEST()
1131 EXPECT_EQ(logrotate_count_id(logcat_short_cmd, tmp_out_dir), 34); in TEST()
1134 snprintf(id_file, sizeof(id_file), "%s/%s.id", tmp_out_dir, log_filename); in TEST()
1137 EXPECT_EQ(logrotate_count_id(logcat_short_cmd, tmp_out_dir), 34); in TEST()
1140 EXPECT_EQ(logrotate_count_id(logcat_short_cmd, tmp_out_dir), 34); in TEST()
1150 ASSERT_EQ(34, logrotate_count_id(logcat_short_cmd, tmp_out_dir)); in TEST()
1156 (new_signature = logrotate_count_id(logcat_short_cmd, tmp_out_dir)), 2); in TEST()
1161 snprintf(command, sizeof(command), cleanup_cmd, tmp_out_dir); in TEST()