Skip to content

Commit 07b54b0

Browse files
committed
Fix PerformanceHintManagerTest CTS to check EPERM
Bug: 293661201 Bug: 308061792 Test: atest PerformanceHintManagerTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:687c4e47e01479b4bb8b1e35a6ddce618bbeafb1) Merged-In: I809151e17600d769df7ed8e6215f09abf4dd8418 Change-Id: I809151e17600d769df7ed8e6215f09abf4dd8418
1 parent e6f4cd2 commit 07b54b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/tests/os/jni/android_os_cts_PerformanceHintManagerTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ static jstring nativeTestSetThreadsWithInvalidTid(JNIEnv* env, jobject) {
170170
std::vector<pid_t> tids;
171171
tids.push_back(2);
172172
int result = APerformanceHint_setThreads(wrapper.session(), tids.data(), 1);
173-
if (result != EINVAL) {
174-
return toJString(env, "setThreads did not return EINVAL");
173+
if (result != EPERM) {
174+
return toJString(env, "setThreads did not return EPERM");
175175
}
176176
return nullptr;
177177
}

0 commit comments

Comments
 (0)