OldStyle tests have special chars in names

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2026-01-05, Programmability 2026-01-19
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Because we use demangled typeid names to generate the test names, we're ending up with :: etc in the names and these are a problem for gtest_filter, which uses : as a delimiter. We need to revisit the "add" calls for the OldStyle test and give such tests a better way to come up with names for themselves. Maybe a way to set a name generator function or something.  I imagine different tests will have different needs.

       

       
      .bq Hm. This isn't going to work. The demangleName is inevitably going to have colons in it.
      I think we have a bug in the adaptor code there because those names are going to be incompatible with gtest_filter. We'll have to get a ticket started and come up with the right fix.

      bazel run +sorter_long_running_test

      Note: Google Test filter = sorter.mongo::sorter::SortedFileWriterAndFileIteratorTests:sorter.mongo::sorter::MergeIteratorTests:sorter.mongo::sorter::SorterTests::basic:sorter.mongo::sorter::SorterTests::Limit:sorter.mongo::sorter::SorterTests::Dupes:sorter.mongo::sorter::SorterTests::LotsOfDataLittleMemory<false>:sorter.mongo::sorter::SorterTests::LotsOfDataLittleMemory<true>:sorter.mongo::sorter::SorterTests::LotsOfSpillsLittleMemory<false>

      etc.... The colons become part of the filter and it's a mess.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: