#include "memory_utils/memory_check_utils.h"
#include "src/string/bcmp.h"
#include "test/UnitTest/Test.h"
+#include "test/UnitTest/TestLogger.h"
namespace __llvm_libc {
for (size_t size = 0; size < kMaxSize; ++size) {
auto span1 = Buffer1.span().subspan(0, size);
auto span2 = Buffer2.span().subspan(0, size);
- ASSERT_TRUE((CheckBcmp<Impl>(span1, span2, size)));
+ const bool OK = CheckBcmp<Impl>(span1, span2, size);
+ if (!OK)
+ testing::tlog << "Failed at size=" << size << '\n';
+ ASSERT_TRUE(OK);
}
}
#include "memory_utils/memory_check_utils.h"
#include "src/string/memcmp.h"
#include "test/UnitTest/Test.h"
+#include "test/UnitTest/TestLogger.h"
namespace __llvm_libc {
for (size_t size = 0; size < kMaxSize; ++size) {
auto span1 = Buffer1.span().subspan(0, size);
auto span2 = Buffer2.span().subspan(0, size);
- ASSERT_TRUE((CheckMemcmp<Impl>(span1, span2, size)));
+ const bool OK = CheckMemcmp<Impl>(span1, span2, size);
+ if (!OK)
+ testing::tlog << "Failed at size=" << size << '\n';
+ ASSERT_TRUE(OK);
}
}
"//libc:memmove",
],
deps = [
+ ":memory_check_utils",
"//libc:__support_cpp_span",
"//libc/test/UnitTest:memory_matcher",
- ":memory_check_utils",
],
)
"//libc:bcopy",
],
deps = [
+ ":memory_check_utils",
"//libc:__support_cpp_span",
"//libc/test/UnitTest:memory_matcher",
- ":memory_check_utils",
],
)
libc_function_deps = [
"//libc:memcmp",
],
- deps = [":memory_check_utils"],
+ deps = [
+ ":memory_check_utils",
+ "//libc/test/UnitTest:test_logger",
+ ],
)
libc_test(
libc_function_deps = [
"//libc:bcmp",
],
- deps = [":memory_check_utils"],
+ deps = [
+ ":memory_check_utils",
+ "//libc/test/UnitTest:test_logger",
+ ],
)
libc_test(