Esempio n. 1
0
void run_tests(void) {
  test_unlocked_with_zero_timestamp();
  test_multiple_readers();
  test_multiple_writers();
  test_reader_plus_writer();
  test_writer_plus_reader();
  test_reader_timedwait();
  test_writer_timedwait();
  test_recursive_reader();
  test_multiple_reader_wakeup();
}
Esempio n. 2
0
int main(int argc, char** argv) {
  grpc_test_init(argc, argv);
  gpr_time_init();
  srand((unsigned)gpr_now(GPR_CLOCK_REALTIME).tv_nsec);
  test_invalid_record_size();
  test_end_write_with_different_size();
  test_read_pending_record();
  test_read_beyond_pending_record();
  test_detached_while_reading();
  test_fill_log_no_fragmentation();
  test_fill_circular_log_no_fragmentation();
  test_fill_log_with_straddling_records();
  test_fill_circular_log_with_straddling_records();
  test_small_log();
  test_multiple_writers();
  test_multiple_writers_circular_log();
  test_performance();
  return 0;
}
Esempio n. 3
0
int main(int argc, char **argv) {
  grpc_test_init(argc, argv);
  srand(gpr_now(GPR_CLOCK_REALTIME).tv_nsec);
  test_multiple_writers();
  return 0;
}