Commit Graph

4 Commits

Author SHA1 Message Date
Richard Mudgett
24a8f7627d Fix AST_LIST_INSERT_BEFORE_CURRENT() updating the wrong variable.
AST_LIST_INSERT_BEFORE_CURRENT() could not be used twice in an iteration
or before AST_LIST_REMOVE_CURRENT() without corrupting the list.
AST_LIST_INSERT_BEFORE_CURRENT() could also corrupt the list if
AST_LIST_INSERT_BEFORE_CURRENT() or AST_LIST_REMOVE_CURRENT() is used on
the next iteration.

* Fixed cut and paste error using the wrong variable in
AST_LIST_INSERT_BEFORE_CURRENT().

* Added linked list unit tests for AST_LIST_INSERT_BEFORE_CURRENT(),
AST_LIST_APPEND_LIST(), and AST_LIST_INSERT_LIST_AFTER().
........

Merged revisions 342661 from http://svn.asterisk.org/svn/asterisk/branches/1.8


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@342662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-10-29 04:26:28 +00:00
Paul Belanger
c3cbe3478c Merged revisions 338555 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r338555 | pabelanger | 2011-09-29 17:12:21 -0400 (Thu, 29 Sep 2011) | 2 lines
  
  Test modules should depend on the TEST_FRAMEWORK flag
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@338556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-09-29 21:14:34 +00:00
Paul Belanger
36f0a24040 Merged revisions 332176 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r332176 | pabelanger | 2011-08-16 16:10:13 -0400 (Tue, 16 Aug 2011) | 4 lines
  
  Flag test modules as 'core'
  
  Review: https://reviewboard.asterisk.org/r/1369/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@332177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-16 20:11:49 +00:00
Terry Wilson
d1b90694a2 Merged revisions 328716 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r328716 | twilson | 2011-07-18 20:35:53 -0500 (Mon, 18 Jul 2011) | 7 lines
  
  Make AST_LIST_REMOVE safer
  
  AST_LIST_REMOVE shouldn't modify the element passed in if it isn't found. This
  commit also adds linked list unit tests.
  
  Review: https://reviewboard.asterisk.org/r/1321/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.10@328717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-19 01:55:32 +00:00