summaryrefslogtreecommitdiff
path: root/osi
diff options
context:
space:
mode:
authorPavlin Radoslavov <pavlin@google.com>2016-05-02 15:53:22 -0700
committerPavlin Radoslavov <pavlin@google.com>2016-05-02 15:59:56 -0700
commit655f11b43b62fb23a32157dc2360f38bf109556d (patch)
tree4dc089423837c13d4ca0882aae1cffc0b6707a80 /osi
parente460c29607ce0681976146159c3aae8fde45ec1b (diff)
downloadandroid-system-bt-655f11b43b62fb23a32157dc2360f38bf109556d.tar.gz
android-system-bt-655f11b43b62fb23a32157dc2360f38bf109556d.tar.xz
Fix test_set_zero_periodic unit test failure
Removed an "EXPECT_EQ(cb_counter, 0)" statement right after a timer of value 0 is scheduled. The EXPECT_EQ statement shouldn't be there, because by the time it is reached, the callback might have been called already. Change-Id: I61fbec96c436787321c6b36006a2bc1c0e627667
Diffstat (limited to 'osi')
-rw-r--r--osi/test/alarm_test.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/osi/test/alarm_test.cpp b/osi/test/alarm_test.cpp
index 8d72776..954468c 100644
--- a/osi/test/alarm_test.cpp
+++ b/osi/test/alarm_test.cpp
@@ -145,7 +145,6 @@ TEST_F(AlarmTest, test_set_zero_periodic) {
alarm_set(alarm, 0, cb, NULL);
- EXPECT_EQ(cb_counter, 0);
EXPECT_TRUE(WakeLockHeld());
for (int i = 1; i <= 10; i++) {