diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index 5fea4449e1b9e..5331a0409d2a2 100644 --- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel @@ -3708,8 +3708,8 @@ libc_function( libc_function( name = "bcopy", - srcs = ["src/string/bcopy.cpp"], - hdrs = ["src/string/bcopy.h"], + srcs = ["src/strings/bcopy.cpp"], + hdrs = ["src/strings/bcopy.h"], features = no_sanitize_features, deps = [ ":__support_common", @@ -3732,8 +3732,8 @@ libc_function( libc_function( name = "bcmp", - srcs = ["src/string/bcmp.cpp"], - hdrs = ["src/string/bcmp.h"], + srcs = ["src/strings/bcmp.cpp"], + hdrs = ["src/strings/bcmp.h"], features = no_sanitize_features, weak = True, deps = [ @@ -3744,8 +3744,8 @@ libc_function( libc_function( name = "bzero", - srcs = ["src/string/bzero.cpp"], - hdrs = ["src/string/bzero.h"], + srcs = ["src/strings/bzero.cpp"], + hdrs = ["src/strings/bzero.h"], features = no_sanitize_features, weak = True, deps = [ diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/string/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/string/BUILD.bazel index b11bf163473be..a31c67cfcea80 100644 --- a/utils/bazel/llvm-project-overlay/libc/test/src/string/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/test/src/string/BUILD.bazel @@ -184,19 +184,6 @@ libc_test( ], ) -libc_test( - name = "bcopy_test", - srcs = ["bcopy_test.cpp"], - libc_function_deps = [ - "//libc:bcopy", - ], - deps = [ - ":memory_check_utils", - "//libc:__support_cpp_span", - "//libc/test/UnitTest:memory_matcher", - ], -) - libc_test( name = "memcmp_test", srcs = ["memcmp_test.cpp"], @@ -208,24 +195,3 @@ libc_test( "//libc/test/UnitTest:test_logger", ], ) - -libc_test( - name = "bcmp_test", - srcs = ["bcmp_test.cpp"], - libc_function_deps = [ - "//libc:bcmp", - ], - deps = [ - ":memory_check_utils", - "//libc/test/UnitTest:test_logger", - ], -) - -libc_test( - name = "bzero_test", - srcs = ["bzero_test.cpp"], - libc_function_deps = [ - "//libc:bzero", - ], - deps = [":memory_check_utils"], -) diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/strings/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/strings/BUILD.bazel new file mode 100644 index 0000000000000..30ca13073c622 --- /dev/null +++ b/utils/bazel/llvm-project-overlay/libc/test/src/strings/BUILD.bazel @@ -0,0 +1,48 @@ +# This file is licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +# Tests for LLVM libc string.h functions. + +load("//libc:libc_build_rules.bzl", "libc_support_library") +load("//libc/test:libc_test_rules.bzl", "libc_test") + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +libc_test( + name = "bcopy_test", + srcs = ["bcopy_test.cpp"], + libc_function_deps = [ + "//libc:bcopy", + ], + deps = [ + "//libc:__support_cpp_span", + "//libc/test/UnitTest:memory_matcher", + "//libc/test/src/string:memory_check_utils", + ], +) + +libc_test( + name = "bcmp_test", + srcs = ["bcmp_test.cpp"], + libc_function_deps = [ + "//libc:bcmp", + ], + deps = [ + "//libc/test/UnitTest:test_logger", + "//libc/test/src/string:memory_check_utils", + ], +) + +libc_test( + name = "bzero_test", + srcs = ["bzero_test.cpp"], + libc_function_deps = [ + "//libc:bzero", + ], + deps = [ + "//libc/test/src/string:memory_check_utils", + ], +)