Skip to content

Commit

Permalink
Commenting out unused code
Browse files Browse the repository at this point in the history
testing++
  • Loading branch information
henricasanova committed Oct 11, 2024
1 parent 2d0d065 commit a1384c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/fsmod/PartitionFIFOCaching.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace simgrid::fsmod {
private:
unsigned long sequence_number_ = 0;
std::map<unsigned long, FileMetadata*> priority_list_;
void print_priority_list();
// void print_priority_list();
};

/** \endcond */
Expand Down
14 changes: 7 additions & 7 deletions src/PartitionFIFOCaching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ namespace simgrid::fsmod {
}
}

void PartitionFIFOCaching::print_priority_list() {
std::cerr << "PLIST " << this->get_name() << " = ";
for (auto const &i : priority_list_) {
std::cerr << " " << i.second->file_name_ << " ";
}
std::cerr << "\n";
}
// void PartitionFIFOCaching::print_priority_list() {
// std::cerr << "PLIST " << this->get_name() << " = ";
// for (auto const &i : priority_list_) {
// std::cerr << " " << i.second->file_name_ << " ";
// }
// std::cerr << "\n";
// }

void PartitionFIFOCaching::new_file_creation_event(FileMetadata *file_metadata) {
file_metadata->sequence_number_ = sequence_number_++;
Expand Down
2 changes: 2 additions & 0 deletions test/truncate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ TEST_F(TruncateTest, TruncateAndTell) {
ASSERT_NO_THROW(file = fs_->open("/dev/a/foo.txt", "a"));
XBT_INFO("Check current position, should be 100k ('append' mode)");
ASSERT_DOUBLE_EQ(file->tell(), 100*1000);
XBT_INFO("Try to truncate an opened file, which should fail");
ASSERT_THROW(fs_->truncate_file("/dev/a/foo.txt", 50*1000), sgfs::InvalidTruncateException);
XBT_INFO("Close the file");
ASSERT_NO_THROW(file->close());
XBT_INFO("Truncate the file to half its size");
Expand Down

0 comments on commit a1384c3

Please sign in to comment.