Skip to content
Snippets Groups Projects
  1. Apr 05, 2021
  2. Mar 09, 2021
  3. Jan 18, 2021
  4. Dec 17, 2020
  5. Oct 31, 2020
  6. Oct 10, 2020
  7. Oct 08, 2020
  8. Sep 29, 2020
  9. Sep 27, 2020
  10. Sep 23, 2020
  11. Sep 22, 2020
  12. Sep 11, 2020
  13. Sep 09, 2020
  14. Aug 24, 2020
  15. Aug 09, 2020
  16. Aug 08, 2020
  17. Aug 07, 2020
  18. Aug 02, 2020
  19. Jul 27, 2020
  20. Jul 22, 2020
  21. Jul 21, 2020
  22. May 29, 2020
  23. Apr 09, 2020
  24. Mar 25, 2020
    • Nat Goodspeed's avatar
      DRTVWR-476: Disable test_httprequest.hpp on Mac Release builds. · 4174bb36
      Nat Goodspeed authored
      For reasons not yet diagnosed, specifically in Mac Release builds, the tests
      in test_httprequest.hpp consistently crash with a backtrace suggesting that
      the worker thread is calling LLCore::HttpLibcurl::completeRequest() after the
      foreground thread calls HttpRequest::destroyService().
      
      Weirdly, even executing a tut::skip() call in every test<n>() function up to
      the point of the crash does not eliminate the crash.
      4174bb36
    • Nat Goodspeed's avatar
      DRTVWR-476: Remove special llcorehttp test memory manager. · 2902f23a
      Nat Goodspeed authored
      NickyD discovered that the substitute default allocator used for llcorehttp
      tests was returning badly-aligned storage, which caused access violations on
      alignment-sensitive data such as std::atomic. Thanks Nicky!!
      
      Moreover, the llcorehttp test assertions regarding memory usage, well-
      intentioned though they are, have been causing us trouble for years. Many have
      already been disabled.
      
      The problem is that use of test_allocator.h affected *everything* defined with
      that header file's declarations visible. That inevitably included specific
      functions in other subsystems. Those functions then (unintentionally) consumed
      the special allocator, throwing off the memory tracking and making certain
      memory-related assertions consistently fail.
      
      This is a particular, observable bad effect of One Definition Rule violations.
      Within a given program, C++ allows multiple definitions for the same entity,
      but requires that all such definitions be the same. Partial visibility of the
      global operator new() and operator delete() overrides meant that some
      definitions of certain entities used the default global allocator, some used
      llcorehttp's. There may have been other, more subtle bad effects of these ODR
      violations.
      
      If one wanted to reimplement verification of the memory consumption of
      llcorehttp classes:
      
      * Each llcorehttp class (for which memory tracking was desired) should declare
        class-specific operator new() and operator delete() methods. Naturally,
        these would all consume a central llcorehttp-specific allocator, but that
        allocator should *not* be named global operator new().
      * Presumably that would require runtime indirection to allow using the default
        allocator in production while substituting the special allocator for tests.
      * Recording and verifying the memory consumption in each test should be
        performed in the test-object constructor and destructor, rather than being
        sprinkled throughout the test<n>() methods.
      * With that mechanism in place, the test object should provide methods to
        adjust (or entirely disable) memory verification for a particular test.
      * The test object should also provide a "yes, we're still consuming llcorehttp
        memory" method to be used for spot checks in the middle of tests -- instead
        of sprinkling in explicit comparisons as before.
      * In fact, the llcorehttp test object in each test_*.hpp file should be
        derived from a central llcorehttp test-object base class providing those
        methods.
      2902f23a
    • Nat Goodspeed's avatar
      DRTVWR-476: Add LLCOREHTTP_TESTS CMake var, OFF by default on Mac. · c56601bc
      Nat Goodspeed authored
      Hopefully this is temporary until we solve the problem of crashy llcorehttp
      test executable on Mac.
      c56601bc
    • Anchor's avatar
      [DRTVWR-476] - revert · ca66cea7
      Anchor authored
      ca66cea7
    • Anchor's avatar
      [DRTVWR-476] - disable llcorehttp test on mac · cc230eef
      Anchor authored
      cc230eef
Loading