Changeset 04afd22 in rtems-testing


Ignore:
Timestamp:
Apr 23, 2010, 8:28:09 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
8c62b8d
Parents:
af9c097
Message:

2010-04-23 Joel Sherrill <joel.sherrill@…>

  • covoar.cc: Should no longer have to have an explanations file.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    raf9c097 r04afd22  
     12010-04-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * covoar.cc: Should no longer have to have an explanations file.
     4
    152010-04-23      Jennifer Averett <Jennifer.Averett@OARcorp.com
    26
  • rtems-coverage/covoar.cc

    raf9c097 r04afd22  
    4141std::list<Coverage::ExecutableInfo*> executablesToAnalyze;
    4242char*                                explanations = NULL;
    43 char*                                noExplanations = NULL;
    4443char*                                progname;
    4544bool                                 singleExecutable = false;
     
    217216  // Create explanations.
    218217  AllExplanations = new Coverage::Explanations();
    219   AllExplanations->load( explanations );
     218  if ( explanations )
     219    AllExplanations->load( explanations );
    220220
    221221  // Create coverage map reader.
     
    314314
    315315  // Write explanations that were not found.
    316   std::string str = explanations;
    317   str = str + ".NotFound";
    318   if (Verbose)
    319     fprintf( stderr, "Writing Not Found Report (%s)\n", str.c_str() );
    320   AllExplanations->writeNotFound(str.c_str());
     316  if ( explanations ) {
     317    std::string str = explanations;
     318    str = str + ".NotFound";
     319    if (Verbose)
     320      fprintf( stderr, "Writing Not Found Report (%s)\n", str.c_str() );
     321    AllExplanations->writeNotFound(str.c_str());
     322  }
    321323
    322324  // Calculate coverage statistics and output results.
Note: See TracChangeset for help on using the changeset viewer.