Use std::this_thread::yield rather than sched_yield
[folly.git] / folly / test / MemcpyTest.cpp
index e9f335852226304250c9fe37844329e0b518191d..f9f5a4336e8614cab2b0375438b69edc4c97ba3e 100644 (file)
@@ -32,7 +32,8 @@ void init() {
 }
 }
 
-TEST(memcpy, zero_len) UBSAN_DISABLE("nonnull-attribute") {
+TEST(memcpy, zero_len)
+    FOLLY_DISABLE_UNDEFINED_BEHAVIOR_SANITIZER("nonnull-attribute") {
   // If length is 0, we shouldn't touch any memory.  So this should
   // not crash.
   char* srcNull = nullptr;