about summary refs log tree commit diff stats
path: root/arc/.traces/convert-names-functions
diff options
context:
space:
mode:
Diffstat (limited to 'arc/.traces/convert-names-functions')
0 files changed, 0 insertions, 0 deletions
='n14' href='#n14'>14 15 16 17 18 19 20 21 22 23 24 25 26 27 28









                                                       

                                                           















                                                                                                                  
typedef void (*test_fn)(void);

const test_fn Tests[] = {
  #include "test_list"  // auto-generated; see makefile
};

bool Passed = true;

long Num_failures = 0;

#define TEST(name) void test_##name() { Trace_file = #name;

#define CHECK(X) \
  if (!(X)) { \
    ++Num_failures; \
    cerr << "\nF " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): " << #X << '\n'; \
    Passed = false; \
    return; \
  }

#define CHECK_EQ(X, Y) \
  if ((X) != (Y)) { \
    ++Num_failures; \
    cerr << "\nF " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): " << #X << " == " << #Y << '\n'; \
    cerr << "  got " << (X) << '\n';  /* BEWARE: multiple eval */ \
    Passed = false; \
    return; \
  }