aboutsummaryrefslogtreecommitdiff
path: root/tests/metatest.c
blob: 1024156f66e197a71954437122c24afa929a7d34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "test_harness.h"

/* Tests the test harness itself. */

static int my_variable;
static int my_initialized_variable = 5;

TEST(meta, clobbers_variables)
{
  my_variable = 6;
  my_initialized_variable = 5;

  return 0;
}

TEST(meta, variables_reset)
{
  ASSERT_EQ(my_variable, 0);
  ASSERT_EQ(my_initialized_variable, 5);

  return 0;
}