summaryrefslogtreecommitdiffstats
path: root/libsync
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.com>2016-12-06 16:09:51 -0200
committerDmitry Shmidt <dimitrysh@google.com>2017-01-17 14:29:18 -0800
commite4682802cbeeefe8e870e5b7b110515659a6a14f (patch)
tree5eee4186ed48c7d301e979471ae460d41852ac02 /libsync
parent61ab0d74d218d0be32d0cab1c7ee22c5e12216fe (diff)
downloadsystem_core-e4682802cbeeefe8e870e5b7b110515659a6a14f.tar.gz
system_core-e4682802cbeeefe8e870e5b7b110515659a6a14f.tar.bz2
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.cpp27
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) {
ASSERT_EQ(selfMergeFence.getSignaledCount(), 1);
}
-TEST(FenceTest, WaitOnDestroyedTimeline) {
- SyncTimeline timeline;
- ASSERT_TRUE(timeline.isValid());
-
- SyncFence fenceSig(timeline, 100);
- SyncFence fenceKill(timeline, 200);
-
- // Spawn a thread to wait on a fence when the timeline is killed.
- thread waitThread{
- [&]() {
- ASSERT_EQ(timeline.inc(100), 0);
-
- ASSERT_EQ(fenceKill.wait(-1), -1);
- ASSERT_EQ(errno, ENOENT);
- }
- };
-
- // Wait for the thread to spool up.
- fenceSig.wait();
-
- // Kill the timeline.
- timeline.destroy();
-
- // wait for the thread to clean up.
- waitThread.join();
-}
-
TEST(FenceTest, PollOnDestroyedTimeline) {
SyncTimeline timeline;
ASSERT_TRUE(timeline.isValid());