Commit 9e60a1fb authored by Maria Matejka's avatar Maria Matejka
Browse files

Fixed resource initialization in unit tests

parent b90c9b16
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ t_bmap_set_clear_random(void)
{
  struct bmap b;

  resource_init();
  bmap_init(&b, &root_pool, 1024);

  char expected[MAX_NUM] = {};
@@ -60,7 +59,6 @@ t_hmap_set_clear_random(void)
{
  struct hmap b;

  resource_init();
  hmap_init(&b, &root_pool, 1024);

  char expected[MAX_NUM] = {};
@@ -119,7 +117,6 @@ t_hmap_set_clear_fill(void)
{
  struct hmap b;

  resource_init();
  hmap_init(&b, &root_pool, 1024);

  char expected[MAX_NUM] = {};
+0 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ fill_expected_array(void)
static void
init_buffer(void)
{
  resource_init();
  buffer_pool = &root_pool;
  BUFFER_INIT(buf, buffer_pool, MAX_NUM);
}
+0 −1
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ t_ev_run_list(void)
{
  int i;

  resource_init();
  olock_init();
  timer_init();
  io_init();
+0 −3
Original line number Diff line number Diff line
@@ -446,8 +446,6 @@ t_validation6(void)
static int
t_builder4(void)
{
  resource_init();

  struct flow_builder *fb = flow_builder_init(&root_pool);

  /* Expectation */
@@ -528,7 +526,6 @@ t_builder6(void)
{
  net_addr_ip6 ip;

  resource_init();
  struct flow_builder *fb = flow_builder_init(&root_pool);
  fb->ipv6 = 1;

+0 −1
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ dump_nodes(void)
static void
init_hash_(uint order)
{
  resource_init();
  my_pool = rp_new(&root_pool, "Test pool");

  HASH_INIT(hash, my_pool, order);
Loading