diff options
author | Gustavo Padovan | 2016-12-06 12:09:51 -0600 |
---|---|---|
committer | Dmitry Shmidt | 2017-01-17 16:29:18 -0600 |
commit | e4682802cbeeefe8e870e5b7b110515659a6a14f (patch) | |
tree | 5eee4186ed48c7d301e979471ae460d41852ac02 /libsync | |
parent | 61ab0d74d218d0be32d0cab1c7ee22c5e12216fe (diff) | |
download | platform-system-core-e4682802cbeeefe8e870e5b7b110515659a6a14f.tar.gz platform-system-core-e4682802cbeeefe8e870e5b7b110515659a6a14f.tar.xz platform-system-core-e4682802cbeeefe8e870e5b7b110515659a6a14f.zip |
libsync: tests: remove WaitOnDestroyedTimeline test
The mainline Sync File implementation doesn't have wait ioctl anymore.
Only poll is supported now, and we already have a test for that.
Test: Sync unit tests still passes.
Change-Id: Iadde7b2173024af9b8d20316e640297cf214c645
Diffstat (limited to 'libsync')
-rw-r--r-- | libsync/tests/sync_test.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libsync/tests/sync_test.cpp b/libsync/tests/sync_test.cpp index 2c409dc27..7c65756f0 100644 --- a/libsync/tests/sync_test.cpp +++ b/libsync/tests/sync_test.cpp | |||
@@ -348,33 +348,6 @@ TEST(FenceTest, MergeSameFence) { | |||
348 | ASSERT_EQ(selfMergeFence.getSignaledCount(), 1); | 348 | ASSERT_EQ(selfMergeFence.getSignaledCount(), 1); |
349 | } | 349 | } |
350 | 350 | ||
351 | TEST(FenceTest, WaitOnDestroyedTimeline) { | ||
352 | SyncTimeline timeline; | ||
353 | ASSERT_TRUE(timeline.isValid()); | ||
354 | |||
355 | SyncFence fenceSig(timeline, 100); | ||
356 | SyncFence fenceKill(timeline, 200); | ||
357 | |||
358 | // Spawn a thread to wait on a fence when the timeline is killed. | ||
359 | thread waitThread{ | ||
360 | [&]() { | ||
361 | ASSERT_EQ(timeline.inc(100), 0); | ||
362 | |||
363 | ASSERT_EQ(fenceKill.wait(-1), -1); | ||
364 | ASSERT_EQ(errno, ENOENT); | ||
365 | } | ||
366 | }; | ||
367 | |||
368 | // Wait for the thread to spool up. | ||
369 | fenceSig.wait(); | ||
370 | |||
371 | // Kill the timeline. | ||
372 | timeline.destroy(); | ||
373 | |||
374 | // wait for the thread to clean up. | ||
375 | waitThread.join(); | ||
376 | } | ||
377 | |||
378 | TEST(FenceTest, PollOnDestroyedTimeline) { | 351 | TEST(FenceTest, PollOnDestroyedTimeline) { |
379 | SyncTimeline timeline; | 352 | SyncTimeline timeline; |
380 | ASSERT_TRUE(timeline.isValid()); | 353 | ASSERT_TRUE(timeline.isValid()); |