Skip to content

Commit

Permalink
Disable distributed mutex test for valgrind_test (facebook#6553)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebook#6553

Test Plan:
```
$ make valgrind_test -j24
$ ./folly_synchronization_distributed_mutex_test
DistributedMutex is not supported in ROCKSDB_LITE, on ARM, or in valgrind_test runs
```

Reviewed By: pdillinger

Differential Revision: D20501966

Pulled By: ltamasi

fbshipit-source-id: 386ec5f258f89d0781a36c5b390c665787093a74
  • Loading branch information
ltamasi authored and facebook-github-bot committed Mar 18, 2020
1 parent 712bc4b commit 1df9b01
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#include <gtest/gtest.h>
#endif

#if !defined(ROCKSDB_LITE) && !defined(__ARM_ARCH)
#if !defined(ROCKSDB_LITE) && !defined(__ARM_ARCH) && \
!defined(ROCKSDB_VALGRIND_RUN)

#include <chrono>
#include <cmath>
Expand Down Expand Up @@ -1136,7 +1137,9 @@ int main(int argc, char** argv) {

#else
int main(int /*argc*/, char** /*argv*/) {
printf("DistributedMutex is not supported in ROCKSDB_LITE or on ARM\n");
printf(
"DistributedMutex is not supported in ROCKSDB_LITE, on ARM, or in "
"valgrind_test runs\n");
return 0;
}
#endif // !ROCKSDB_LITE && !__ARM_ARCH
#endif // !ROCKSDB_LITE && !__ARM_ARCH && !ROCKSDB_VALGRIND_RUN

0 comments on commit 1df9b01

Please sign in to comment.