diff --git a/utilities/transactions/optimistic_transaction_test.cc b/utilities/transactions/optimistic_transaction_test.cc index b44f07ca8..b610a9ba8 100644 --- a/utilities/transactions/optimistic_transaction_test.cc +++ b/utilities/transactions/optimistic_transaction_test.cc @@ -843,4 +843,14 @@ int main(int argc, char** argv) { return RUN_ALL_TESTS(); } -#endif // ROCKSDB_LITE +#else +#include + +int main(int argc, char** argv) { + fprintf( + stderr, + "SKIPPED as optimistic_transaction is not supported in ROCKSDB_LITE\n"); + return 0; +} + +#endif // !ROCKSDB_LITE