diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-06-28 20:15:08 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-06-28 20:15:08 +0200 |
commit | 79e1c5eb90fb754f6cd40f5e32d9a1b7284c9717 (patch) | |
tree | 9e508b5c9b4199c24b66b4d2a0c5c46e6f021039 /test/cachemanagertest.cc | |
parent | 59c16d2e8a424f0f4c2a93888ae78b945bd8defb (diff) |
Fix unit tests to run with new setFramesize feature.
Diffstat (limited to 'test/cachemanagertest.cc')
-rw-r--r-- | test/cachemanagertest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cachemanagertest.cc b/test/cachemanagertest.cc index ae346db..e1d8289 100644 --- a/test/cachemanagertest.cc +++ b/test/cachemanagertest.cc @@ -29,6 +29,8 @@ #include <cachemanager.h> #include <unistd.h> +#define FRAMESIZE 1024 + class test_cachemanager : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(test_cachemanager); @@ -60,6 +62,8 @@ public: printf("cm.init\n"); cm.init(100, threaded); + cm.setFrameSize(FRAMESIZE); + cacheid_t id; // TODO: test 0 ... FRAMESIZE - 1 size_t initial_samples_needed = (FRAMESIZE - 1) / 2; |