Files
scylladb/test/boost/exceptions_optimized_test.cc
Avi Kivity f3eade2f62 treewide: relicense to ScyllaDB-Source-Available-1.0
Drop the AGPL license in favor of a source-available license.
See the blog post [1] for details.

[1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
2024-12-18 17:45:13 +02:00

31 lines
662 B
C++

/*
* Copyright (C) 2022-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
*/
#if defined(NO_OPTIMIZED_EXCEPTION_HANDLING)
#undef NO_OPTIMIZED_EXCEPTION_HANDLING
#endif
#include "utils/exceptions.hh"
#if defined(OPTIMIZED_EXCEPTION_HANDLING_AVAILABLE)
#include "exceptions_test.inc.cc"
#else
#include <boost/test/unit_test_log.hpp>
#include <seastar/testing/test_case.hh>
SEASTAR_TEST_CASE(test_noop) {
BOOST_TEST_MESSAGE("Optimized implementation of handling exceptions "
"without throwing is not available. Skipping tests in this file.");
return seastar::make_ready_future<>();
}
#endif