From 3eb3cc2757631aa80c25b228b5f3d40b2da2b2c2 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Thu, 8 Sep 2016 03:23:41 -0500 Subject: [PATCH] Even more logging - trying to determine crash on build server --- src/CacheDisk.cpp | 1 + src/CacheMemory.cpp | 2 ++ tests/Cache_Tests.cpp | 3 +++ 3 files changed, 6 insertions(+) diff --git a/src/CacheDisk.cpp b/src/CacheDisk.cpp index 6ca8941e..c400081e 100644 --- a/src/CacheDisk.cpp +++ b/src/CacheDisk.cpp @@ -40,6 +40,7 @@ CacheDisk::CacheDisk(string cache_path, string format, float quality, float scal image_format = format; image_quality = quality; image_scale = scale; + max_bytes = 0; // Init path directory InitPath(cache_path); diff --git a/src/CacheMemory.cpp b/src/CacheMemory.cpp index 1e480095..1e592b88 100644 --- a/src/CacheMemory.cpp +++ b/src/CacheMemory.cpp @@ -36,6 +36,7 @@ CacheMemory::CacheMemory() : CacheBase(0) { cache_type = "CacheMemory"; range_version = 0; needs_range_processing = false; + max_bytes = 0; }; // Constructor that sets the max bytes to cache @@ -293,6 +294,7 @@ void CacheMemory::Clear() // Count the frames in the queue long int CacheMemory::Count() { + cout << "CacheMemory::Count" << endl; // Create a scoped lock, to protect the cache from multiple threads const GenericScopedLock lock(*cacheCriticalSection); diff --git a/tests/Cache_Tests.cpp b/tests/Cache_Tests.cpp index f3ac1eb7..f8f9b1ca 100644 --- a/tests/Cache_Tests.cpp +++ b/tests/Cache_Tests.cpp @@ -47,8 +47,11 @@ TEST(Cache_Default_Constructor) c.Add(f); } + cout << "Cache_Default_Constructor A" << endl; CHECK_EQUAL(50, c.Count()); // Cache should have all frames, with no limit + cout << "Cache_Default_Constructor B" << endl; CHECK_EQUAL(0, c.GetMaxBytes()); // Max frames should default to 0 + cout << "Cache_Default_Constructor C" << endl; } TEST(Cache_Max_Bytes_Constructor)