From fc840808e6cdc7737b18bb8051bf8c8926a40f3c Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Fri, 3 Mar 2023 12:55:03 -0800 Subject: [PATCH] [bazel] Add errno dep to stdlib tests In addition run buildifier. --- .../libc/test/src/stdlib/BUILD.bazel | 39 ++++++++++++---------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel index 195bb57..0e6ad6e 100644 --- a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel @@ -22,37 +22,38 @@ cc_library( libc_test( name = "atoi_test", srcs = ["atoi_test.cpp"], - deps = [":atoi_test_helper"], libc_function_deps = [ "//libc:atoi", ], + deps = [":atoi_test_helper"], ) libc_test( name = "atol_test", srcs = ["atol_test.cpp"], - deps = [":atoi_test_helper"], libc_function_deps = [ "//libc:atol", ], + deps = [":atoi_test_helper"], ) libc_test( name = "atoll_test", srcs = ["atoll_test.cpp"], - deps = [":atoi_test_helper"], libc_function_deps = [ "//libc:atoll", ], + deps = [":atoi_test_helper"], ) libc_test( name = "atof_test", srcs = ["atof_test.cpp"], - deps = ["//libc:__support_fputil_fp_bits"], libc_function_deps = [ "//libc:atof", + "//libc:errno", ], + deps = ["//libc:__support_fputil_fp_bits"], ) libc_test( @@ -77,6 +78,7 @@ cc_library( deps = [ "//libc:__support_cpp_limits", "//libc:__support_cpp_type_traits", + "//libc:errno", "//libc/test/UnitTest:LibcUnitTest", ], ) @@ -84,71 +86,74 @@ cc_library( libc_test( name = "strtol_test", srcs = ["strtol_test.cpp"], - deps = [":strtol_test_helper"], libc_function_deps = [ "//libc:strtol", ], + deps = [":strtol_test_helper"], ) libc_test( name = "strtoll_test", srcs = ["strtoll_test.cpp"], - deps = [":strtol_test_helper"], libc_function_deps = [ "//libc:strtoll", ], + deps = [":strtol_test_helper"], ) libc_test( name = "strtoul_test", srcs = ["strtoul_test.cpp"], - deps = [":strtol_test_helper"], libc_function_deps = [ "//libc:strtoul", ], + deps = [":strtol_test_helper"], ) libc_test( name = "strtoull_test", srcs = ["strtoull_test.cpp"], - deps = [":strtol_test_helper"], libc_function_deps = [ "//libc:strtoull", ], + deps = [":strtol_test_helper"], ) libc_test( name = "strtof_test", srcs = ["strtof_test.cpp"], + libc_function_deps = [ + "//libc:strtof", + ], deps = [ "//libc:__support_fputil_fp_bits", + "//libc:errno", "//libc/utils/testutils:libc_test_utils", ], - libc_function_deps = [ - "//libc:strtof", - ], ) libc_test( name = "strtod_test", srcs = ["strtod_test.cpp"], + libc_function_deps = [ + "//libc:strtod", + ], deps = [ "//libc:__support_fputil_fp_bits", + "//libc:errno", "//libc/utils/testutils:libc_test_utils", ], - libc_function_deps = [ - "//libc:strtod", - ], ) libc_test( name = "strtold_test", srcs = ["strtold_test.cpp"], + libc_function_deps = [ + "//libc:strtold", + ], deps = [ "//libc:__support_fputil_fp_bits", "//libc:__support_uint128", - ], - libc_function_deps = [ - "//libc:strtold", + "//libc:errno", ], ) -- 2.7.4