pw_function: Adding missing dependency in Bazel for test

Fixes: b/241821115
Change-Id: If1bd38dcad5622b809ccc17b2519fef9d3f6a8fb
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112012
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
diff --git a/pw_function/BUILD.bazel b/pw_function/BUILD.bazel
index de6d2e6..6a16156 100644
--- a/pw_function/BUILD.bazel
+++ b/pw_function/BUILD.bazel
@@ -43,5 +43,8 @@
 pw_cc_test(
     name = "function_test",
     srcs = ["function_test.cc"],
-    deps = [":pw_function"],
+    deps = [
+        ":pw_function",
+        "//pw_compilation_testing:negative_compilation_testing",
+    ],
 )
diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
index f18f956..fe86fa4 100755
--- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
+++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
@@ -424,7 +424,6 @@
     '-//pw_chrono/py/...:all',
     '-//pw_crypto/...:all',  # TODO(b/236321905) Remove when passing.
     '-//pw_file/...:all',
-    '-//pw_function:function_test',  # TODO(b/241821115) Remove when passing.
     '-//pw_hdlc/rpc_example',  # TODO(b/241575924) Remove when passing.
     '-//pw_i2c_mcuxpresso/...:all',
     '-//pw_kvs/...:all',