Remove cleanup after bench loop from setAmplitude test

Fix error on waiting for long vibration callback that might have been
already cleared by the HAL when vibration finished. Test run crash log:

FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xf5a83bbc)

Keep all test cleanup logic in teardown methods.

Bug: 329899022
Change-Id: If7c13296b870e792063a9ad7b307d57fb5c333aa
Test: atest VibratorHalIntegrationBenchmark
This commit is contained in:
Lais Andrade
2024-03-26 12:03:07 +00:00
parent 844a04c078
commit db8ffbb077

View File

@@ -493,11 +493,6 @@ BENCHMARK_WRAPPER(VibratorBench_Aidl, setAmplitude, {
return;
}
}
shouldSkipWithError(state, mVibrator->off());
if (cb) {
cb->waitForComplete();
}
});
BENCHMARK_WRAPPER(VibratorBench_Aidl, setExternalControl, {