Changeset 9373b94 in rtems-testing


Ignore:
Timestamp:
May 10, 2010, 7:08:36 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
0c5677d
Parents:
d7f433a
Message:

2010-05-10 Jennifer Averett <Jennifer.Averett@…>

Location:
rtems-coverage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    rd7f433a r9373b94  
     12010-05-10      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        * CoverageRanges.cc, CoverageRanges.h, ReportsHtml.cc: Merged
     4        notExecuted and Branch anchors into a range anchor to resolve
     5        multiple instances of the same numbers.
     6
    172010-05-10      Jennifer Averett <Jennifer.Averett@OARcorp.com>
    28
  • rtems-coverage/CoverageRanges.cc

    rd7f433a r9373b94  
    1515namespace Coverage {
    1616
     17  /*!
     18   *  This member variable tracks a unique index for the ranges_t block.
     19   */
     20  uint32_t  id_m = 0;
     21
    1722  CoverageRanges::CoverageRanges()
    1823  {
    19     id_m = 0;
    2024  }
    2125
  • rtems-coverage/CoverageRanges.h

    rd7f433a r9373b94  
    9090    protected:
    9191
    92       /*!
    93        *  This member variable tracks a unique index for the ranges_t block.
    94        */
    95       uint32_t  id_m;
    9692
    9793  };
  • rtems-coverage/ReportsHtml.cc

    rd7f433a r9373b94  
    149149{
    150150  std::string stateText;
     151  char        number[10];
     152
    151153 
     154  sprintf(number,"%d", id);
     155
    152156  // Set the stateText based upon the current state.
    153157  switch (state) {
     
    160164    case  A_NEVER_EXECUTED:
    161165      stateText = "</pre>\n";
    162       stateText += "<a name=\"notExecuted";
    163       stateText += ('0' + id);
     166      stateText += "<a name=\"range";
     167      stateText += number;
    164168      stateText += "\"></a><pre class=\"codeNotExecuted\">\n";
    165169      break;
    166170    case  A_BRANCH_TAKEN:
    167171      stateText = "</pre>\n";
    168       stateText += "<a name=\"branches";
    169       stateText += ('0' + id);
     172      stateText += "<a name=\"range";
     173      stateText += number;
    170174      stateText += "\"></a><pre class=\"codeAlwaysTaken\">\n";
    171175      break;
    172176    case  A_BRANCH_NOT_TAKEN:
    173177      stateText = "</pre>\n";
    174       stateText += "<a name=\"branches";
    175       stateText += ('0' + id);
     178      stateText += "<a name=\"range";
     179      stateText += number;
    176180      stateText += "\"></a><pre class=\"codeNeverTaken\">\n";
    177181      break;
     
    231235  fprintf(
    232236    report,
    233     "<td class=\"covoar-td\" align=\"center\"><a href =\"annotated.html#branches%d\">%d</td>\n",
     237    "<td class=\"covoar-td\" align=\"center\"><a href =\"annotated.html#range%d\">%d</td>\n",
    234238     rangePtr->id,
    235239     rangePtr->id
     
    398402  fprintf(
    399403    report,
    400     "<td class=\"covoar-td\" align=\"center\"><a href =\"annotated.html#notExecuted%d\">%d</td>\n",
     404    "<td class=\"covoar-td\" align=\"center\"><a href =\"annotated.html#range%d\">%d</td>\n",
    401405     rangePtr->id,
    402406     rangePtr->id
Note: See TracChangeset for help on using the changeset viewer.