summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/testing.txt2
-rw-r--r--src/cache.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/testing.txt b/doc/testing.txt
index f690939..542de5d 100644
--- a/doc/testing.txt
+++ b/doc/testing.txt
@@ -41,7 +41,7 @@ Adding a new regression test:
------------------------------
1) create a test file at an appropriate location under testdata/
-2) if the test is non-obvious, create a human readable description of the test in the same directory (e.g testdata/scad/mytest.txt)
+2) if the test is non-obvious, create a human readable description as comments in the test (or in another file in the same directory in case the file isn't human readable)
3) if a new test app was written, this must be added to tests/CMakeLists.txt
4) Add the tests to the test apps for which you want them to run (in tests/CMakeLists.txt)
5) run the test with the environment variable TEST_GENERATE=1, e.g.:
diff --git a/src/cache.h b/src/cache.h
index ecf0c8b..ea20393 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -178,7 +178,7 @@ void Cache<Key,T>::trim(int m)
Node *u = n;
n = n->p;
#ifdef DEBUG
- PRINTB("Trimming cache: %1% (%d bytes)", *u->keyPtr % u->c);
+ PRINTB("Trimming cache: %1% (%2% bytes)", *u->keyPtr % u->c);
#endif
unlink(*u);
}
contact: Jan Huwald // Impressum