Skip to content
Snippets Groups Projects
  • Mark Michelson's avatar
    3964b078
    Merged revisions 292741 via svnmerge from · 3964b078
    Mark Michelson authored
    https://origsvn.digium.com/svn/asterisk/branches/1.8
    
    ........
      r292741 | mmichelson | 2010-10-22 12:09:52 -0500 (Fri, 22 Oct 2010) | 12 lines
      
      Prevent multiple runs of event_sub_test from producing false failure results.
      
      The array of test subscriptions was declared "static," meaning that the
      data.count field would retain its value between runs of the test. After the
      first test run, this would result in false reports of test failures.
      
      I chose to just remove the "static" keyword from the structure since it's not
      a huge deal to construct this structure during each run of the test. Another
      alternative would have been to zero out the data.count fields of each test
      subscription instead.
    ........
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@292742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    3964b078
    History
    Merged revisions 292741 via svnmerge from
    Mark Michelson authored
    https://origsvn.digium.com/svn/asterisk/branches/1.8
    
    ........
      r292741 | mmichelson | 2010-10-22 12:09:52 -0500 (Fri, 22 Oct 2010) | 12 lines
      
      Prevent multiple runs of event_sub_test from producing false failure results.
      
      The array of test subscriptions was declared "static," meaning that the
      data.count field would retain its value between runs of the test. After the
      first test run, this would result in false reports of test failures.
      
      I chose to just remove the "static" keyword from the structure since it's not
      a huge deal to construct this structure during each run of the test. Another
      alternative would have been to zero out the data.count fields of each test
      subscription instead.
    ........
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@292742 65c4cc65-6c06-0410-ace0-fbb531ad65f3