Even more logging - trying to determine crash on build server

This commit is contained in:
Jonathan Thomas
2016-09-08 03:23:41 -05:00
parent c540593de4
commit 3eb3cc2757
3 changed files with 6 additions and 0 deletions

View File

@@ -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);

View File

@@ -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<CriticalSection> lock(*cacheCriticalSection);

View File

@@ -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)