Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
c2da6dd4
Commit
c2da6dd4
authored
Dec 13, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/test_queue_priority: fix unit test failure after recent "setprio" change
parent
7146f825
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
15 deletions
+1
-15
NEWS
NEWS
+1
-0
test_queue_priority.cxx
test/test_queue_priority.cxx
+0
-15
No files found.
NEWS
View file @
c2da6dd4
ver 0.19.20 (not yet released)
ver 0.19.20 (not yet released)
* decoder
* decoder
- ffmpeg: fix crash bug
- ffmpeg: fix crash bug
* fix unit test failure after recent "setprio" change
ver 0.19.20 (2016/12/09)
ver 0.19.20 (2016/12/09)
* protocol
* protocol
...
...
test/test_queue_priority.cxx
View file @
c2da6dd4
...
@@ -164,21 +164,6 @@ QueuePriorityTest::TestPriority()
...
@@ -164,21 +164,6 @@ QueuePriorityTest::TestPriority()
check_descending_priority
(
&
queue
,
current_order
+
1
);
check_descending_priority
(
&
queue
,
current_order
+
1
);
/* priority=60 for the old prio50 item; must not be moved,
because it's before the current song, and it's status
hasn't changed (it was already higher before) */
unsigned
c_order
=
0
;
unsigned
c_position
=
queue
.
OrderToPosition
(
c_order
);
CPPUNIT_ASSERT_EQUAL
(
50u
,
unsigned
(
queue
.
items
[
c_position
].
priority
));
queue
.
SetPriority
(
c_position
,
60
,
current_order
);
current_order
=
queue
.
PositionToOrder
(
current_position
);
CPPUNIT_ASSERT_EQUAL
(
3u
,
current_order
);
c_order
=
queue
.
PositionToOrder
(
c_position
);
CPPUNIT_ASSERT_EQUAL
(
0u
,
c_order
);
/* move the prio=20 item back */
/* move the prio=20 item back */
a_order
=
queue
.
PositionToOrder
(
a_position
);
a_order
=
queue
.
PositionToOrder
(
a_position
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment