Fix compile for write_callback_test in ROCKSDB_LITE

Summary: Add main for write_callback_test when compiled under ROCKSDB_LITE

Test Plan: write_callback_test

Reviewers: igor, sdong, yhchiang

Reviewed By: yhchiang

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D42147
This commit is contained in:
Islam AbdelRahman 2015-07-20 10:54:15 -07:00
parent cf6a7bebc8
commit f0fe9126f2

View File

@ -117,4 +117,13 @@ int main(int argc, char** argv) {
return RUN_ALL_TESTS();
}
#endif // ROCKSDB_LITE
#else
#include <stdio.h>
int main(int argc, char** argv) {
fprintf(stderr,
"SKIPPED as WriteWithCallback is not supported in ROCKSDB_LITE\n");
return 0;
}
#endif // !ROCKSDB_LITE