https://github.com/cvxgrp/scs
Raw File
Tip revision: 93bb0a2c53828cecc982ad8a7240f7b0083f5f83 authored by bodonoghue on 02 December 2017, 19:21:43 UTC
add thread sanitizer, probably not needed right now but could be useful later
Tip revision: 93bb0a2
minunit.h
/* Taken from http://www.jera.com/techinfo/jtns/jtn002.html */

/* Simple Macros for testing */
#define mu_assert(message, test)                                               \
  do {                                                                         \
    if (!(test))                                                               \
      return message;                                                          \
  } while (0)
#define mu_run_test(test)                                                      \
  do {                                                                         \
    const char *message = test();                                              \
    tests_run++;                                                               \
    if (message)                                                               \
      return message;                                                          \
  } while (0)
back to top