Skip to content

Commit

Permalink
Bump patch version and make all tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jan 30, 2024
1 parent 70c5238 commit cbed5aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(podio)
#--- Version -------------------------------------------------------------------
SET( ${PROJECT_NAME}_VERSION_MAJOR 0 )
SET( ${PROJECT_NAME}_VERSION_MINOR 17 )
SET( ${PROJECT_NAME}_VERSION_PATCH 4 )
SET( ${PROJECT_NAME}_VERSION_PATCH 99 )

SET( ${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}" )

Expand Down
4 changes: 3 additions & 1 deletion tests/read_frame_auxiliary.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ int test_frame_aux_info(const std::string& fileName) {

auto collsToRead = collsToWrite;
if (reader.currentFileVersion() < podio::version::Version{0, 16, 3}) {
collsToRead.erase(collsToRead.end() - 2, collsToRead.end());
collsToRead.erase(collsToRead.end() - 3, collsToRead.end());
} else if (reader.currentFileVersion() < podio::version::Version{0, 17, 99}) {
collsToRead.erase(collsToRead.end() - 1, collsToRead.end());
}

return testGetAvailableCollections(event, collsToRead);
Expand Down
2 changes: 1 addition & 1 deletion tests/read_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ void processEvent(const podio::Frame& event, int eventNum, podio::version::Versi
}

// ======================= Associations ==========================
if (fileVersion >= podio::version::Version{0, 16, 1}) {
if (fileVersion >= podio::version::Version{0, 17, 99}) {
auto& associations = event.get<TestAssocCollection>("associations");
if (associations.size() != nmspaces.size()) {
throw std::runtime_error("AssociationsCollection does not have the expected size");
Expand Down

0 comments on commit cbed5aa

Please sign in to comment.