@@ -222,24 +222,7 @@ static void test1_resource_creators()
222222 }
223223
224224 // 4. exception safety
225- // Current BDE version 4.8 has a memory leak which is already fixed
226- // (https://github.com/bloomberg/bde/commit/42950dfbcaf2c76cdabc266afacecee67da21a59)
227- // but not released yet. Skip address sanitizer check for BDE version less
228- // than 4.9.
229- #if BSL_VERSION < BSL_MAKE_VERSION(4, 9)
230- #if defined(__has_feature) // Clang-supported method for checking sanitizers.
231- static const bool skipTest = __has_feature (address_sanitizer);
232- #elif defined(__SANITIZE_ADDRESS__)
233- // GCC-supported macros for checking ASAN.
234- static const bool skipTest = true ;
235- #else
236- static const bool skipTest = false ; // Default to running the test.
237- #endif
238- #else
239- static const bool skipTest = false ; // Default to running the test.
240- #endif
241-
242- if (!skipTest) {
225+ {
243226 typedef bmqu::SharedResourceFactoryDeleter<int , bslma::Allocator>
244227 Deleter;
245228
@@ -525,24 +508,7 @@ static void test4_resource_reset()
525508 }
526509
527510 // 5. exception safety
528- // Current BDE version 4.8 has a memory leak which is already fixed
529- // (https://github.com/bloomberg/bde/commit/42950dfbcaf2c76cdabc266afacecee67da21a59)
530- // but not released yet. Skip address sanitizer check for BDE version less
531- // than 4.9.
532- #if BSL_VERSION < BSL_MAKE_VERSION(4, 9)
533- #if defined(__has_feature) // Clang-supported method for checking sanitizers.
534- static const bool skipTest = __has_feature (address_sanitizer);
535- #elif defined(__SANITIZE_ADDRESS__)
536- // GCC-supported macros for checking ASAN.
537- static const bool skipTest = true ;
538- #else
539- static const bool skipTest = false ; // Default to running the test.
540- #endif
541- #else
542- static const bool skipTest = false ; // Default to running the test.
543- #endif
544-
545- if (!skipTest) {
511+ {
546512 typedef bmqu::SharedResourceFactoryDeleter<int , bslma::Allocator>
547513 Deleter;
548514
0 commit comments