Skip to content

Commit 7ef936c

Browse files
authored
Merge pull request #929 from vinser52/svinogra.minor_fixes
Fix unreachable code error when Sanitazer is enabled
2 parents 61f02ef + a37fbc2 commit 7ef936c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/poolFixtures.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ TEST_P(umfPoolTest, mallocUsableSize) {
467467
// Sanitizer replaces malloc_usable_size implementation with its own
468468
GTEST_SKIP()
469469
<< "This test is invalid with AddressSanitizer instrumentation";
470-
#endif
470+
#else
471471

472472
for (size_t allocSize : {32, 48, 1024, 8192}) {
473473
char *ptr = static_cast<char *>(umfPoolMalloc(pool.get(), allocSize));
@@ -482,6 +482,7 @@ TEST_P(umfPoolTest, mallocUsableSize) {
482482

483483
umfPoolFree(pool.get(), ptr);
484484
}
485+
#endif
485486
}
486487

487488
#endif /* UMF_TEST_POOL_FIXTURES_HPP */

0 commit comments

Comments
 (0)