]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/fuzz/util.h
1 // Copyright (c) Meta Platforms, Inc. and affiliates.
3 // This source code is licensed under both the GPLv2 (found in the
4 // COPYING file in the root directory) and Apache 2.0 License
5 // (found in the LICENSE.Apache file in the root directory).
9 #define CHECK_OK(expression) \
11 auto status = (expression); \
13 std::cerr << status.ToString() << std::endl; \
18 #define CHECK_EQ(a, b) \
20 std::cerr << "(" << #a << "=" << a << ") != (" << #b << "=" << b << ")" \
25 #define CHECK_TRUE(cond) \
27 std::cerr << "\"" << #cond << "\" is false" << std::endl; \