ovni/test/unit/unittest.h

13 lines
341 B
C
Raw Permalink Normal View History

2023-02-27 13:40:20 +01:00
/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
2023-02-20 14:40:47 +01:00
* SPDX-License-Identifier: GPL-3.0-or-later */
#ifndef UNITTEST_H
#define UNITTEST_H
#include "common.h"
#define OK(x) do { if ((x) != 0) { die(#x " failed"); } } while (0)
#define ERR(x) do { if ((x) == 0) { die(#x " didn't fail"); } } while (0)
#endif /* UNITTEST_H */