diff options
author | Steven Moreland <smoreland@google.com> | 2017-03-08 08:34:49 -0800 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-03-08 08:34:49 -0800 |
commit | ce9967834a7a0311b66beb20b559abed028726cc (patch) | |
tree | 3e6926370fb6fd32e8904fadd6e49b9f887b3562 /automotive | |
parent | 89dc24e624df806686cb5c5572790fbf43fdcef7 (diff) | |
download | platform_hardware_interfaces-ce9967834a7a0311b66beb20b559abed028726cc.tar.gz platform_hardware_interfaces-ce9967834a7a0311b66beb20b559abed028726cc.tar.bz2 platform_hardware_interfaces-ce9967834a7a0311b66beb20b559abed028726cc.zip |
Remove warning: vehicle RecurrentTimer_test.cpp
0xdeadbeef is exactly 32 bits, so it is interpretted as an unsigned
integer which was causing a warning. Since it's a test value, I changed
it to 0xdead which is interpretted as a signed integer.
Test: pass
Change-Id: Ibb75b23461700d77158e2337b8a472e87629ad61
Diffstat (limited to 'automotive')
-rw-r--r-- | automotive/vehicle/2.0/default/tests/RecurrentTimer_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/automotive/vehicle/2.0/default/tests/RecurrentTimer_test.cpp b/automotive/vehicle/2.0/default/tests/RecurrentTimer_test.cpp index 9353baa61e..9fc17c6652 100644 --- a/automotive/vehicle/2.0/default/tests/RecurrentTimer_test.cpp +++ b/automotive/vehicle/2.0/default/tests/RecurrentTimer_test.cpp @@ -35,11 +35,11 @@ TEST(RecurrentTimerTest, oneInterval) { auto counterRef = std::ref(counter); RecurrentTimer timer([&counterRef](const std::vector<int32_t>& cookies) { ASSERT_EQ(1u, cookies.size()); - ASSERT_EQ(0xDeadBeef, cookies.front()); + ASSERT_EQ(0xdead, cookies.front()); counterRef.get()++; }); - timer.registerRecurrentEvent(milliseconds(1), 0xDeadBeef); + timer.registerRecurrentEvent(milliseconds(1), 0xdead); std::this_thread::sleep_for(milliseconds(100)); ASSERT_EQ_WITH_TOLERANCE(100, counter.load(), 20); } |