commit | 2146303272aef1e08c9ea5a278bd103f83a06877 | [log] [tgz] |
---|---|---|
author | zijunzhao <zijunzhao@google.com> | Sat Mar 18 00:38:14 2023 +0000 |
committer | Zijun Zhao <zijunzhao@google.com> | Wed Mar 29 21:46:57 2023 +0000 |
tree | 948b0812a300e7fc3393f3e748377f92d8e67407 | |
parent | 9dfcaa64e85ede5b7867185d32dca18c49455f3a [diff] [blame] |
Nullability check for sched module. Bugs: b/245972273 Test: adb shell Change-Id: Icb8028ec5864370c0ebfb300f9b6df01edf2742d
diff --git a/tests/sched_test.cpp b/tests/sched_test.cpp index 03e8062..fa1a07f 100644 --- a/tests/sched_test.cpp +++ b/tests/sched_test.cpp
@@ -303,5 +303,8 @@ } TEST(sched, sched_getaffinity_failure) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnonnull" ASSERT_EQ(-1, sched_getaffinity(getpid(), 0, nullptr)); +#pragma clang diagnostic pop }