Skip to content

Commit

Permalink
Check file's basename in test_type_info_Mutator::executeTest (#232)
Browse files Browse the repository at this point in the history
Since dyninst/dyninst#1501, Modules now use
only the full name of the file corresponding to the module's name.
  • Loading branch information
hainest authored Sep 7, 2023
1 parent 2bbffc3 commit cf808cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/symtab/test_type_info.C
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <array>
#include <functional>
#include <iostream>
#include <boost/filesystem/convenience.hpp>

using namespace Dyninst;
using namespace SymtabAPI;
Expand Down Expand Up @@ -1100,10 +1101,8 @@ test_results_t test_type_info_Mutator::executeTest() {
}

for (unsigned int i = 0; i < mods.size(); ++i) {
std::string mname = mods[i]->fileName();
if (!strncmp("solo_mutatee", mname.c_str(), strlen("solo_mutatee")) ||
!strncmp("test_type_info_mutatee", mname.c_str(),
strlen("test_type_info_mutatee"))) {
auto const& mname = boost::filesystem::path(mods[i]->fileName()).stem();
if (mname != "solo_mutatee" || mname != "test_type_info_mutatee") {
if (mod)
logerror("%s[%d]: FIXME\n", FILE__, __LINE__);
mod = mods[i];
Expand Down

0 comments on commit cf808cf

Please sign in to comment.