From 37a776ef24cf490beacdf05ba16b73e25ec744c3 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Thu, 30 Jan 2014 22:52:44 -0500 Subject: [PATCH] playqueue test fixes Signed-off-by: Anna Schumaker --- lib/playqueue.cpp | 2 +- tests/playqueue/playqueue.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/playqueue.cpp b/lib/playqueue.cpp index 415e5ba5..dc63cd34 100644 --- a/lib/playqueue.cpp +++ b/lib/playqueue.cpp @@ -378,6 +378,6 @@ void Playqueue :: set_cur(unsigned int c) void Playqueue :: reset() { tracks.clear(); - reset_cur(); + set_cur(0); } #endif /* CONFIG_TEST */ diff --git a/tests/playqueue/playqueue.cpp b/tests/playqueue/playqueue.cpp index ba47ccc1..4ec18e3b 100644 --- a/tests/playqueue/playqueue.cpp +++ b/tests/playqueue/playqueue.cpp @@ -142,7 +142,7 @@ void test_3() for (unsigned int i = 0; i < 25; i++) { print("Selecting id: %u\n", pqueue.next()); if (i == 4) - pqueue.reset_cur(); + pqueue.set_cur(0); } test_pqueue_status("3b", pqueue); print("\n");