var-tracking-assignments size limit exceeded in Catalogue unit tests
Since CTA is being compiled with gcc-8, the compiler is returning this note:
In file included from /usr/include/gtest/gtest.h:57,
from /home/cta/CTA/catalogue/CatalogueTest.hpp:26,
from /home/cta/CTA/catalogue/CatalogueTest.cpp:19:
/home/cta/CTA/catalogue/CatalogueTest.cpp: In member function ‘virtual void unitTests::cta_catalogue_CatalogueTest_filesWrittenToTape_many_archive_files_Test::TestBody()’:
/home/cta/CTA/catalogue/CatalogueTest.cpp:9564:8: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
TEST_P(cta_catalogue_CatalogueTest, filesWrittenToTape_many_archive_files) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtest/gtest.h:57,
from /home/cta/CTA/catalogue/CatalogueTest.hpp:26,
from /home/cta/CTA/catalogue/CatalogueTest.cpp:19:
/home/cta/CTA/catalogue/CatalogueTest.cpp: In member function ‘virtual void unitTests::cta_catalogue_CatalogueTest_filesWrittenToTape_many_archive_files_Test::TestBody()’:
/home/cta/CTA/catalogue/CatalogueTest.cpp:9564:8: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
TEST_P(cta_catalogue_CatalogueTest, filesWrittenToTape_many_archive_files) {
If we check the code only this test has around 1000 lines of code. It's highly recommended to split it using a helper class.
Edited by Michael Davis