about summary refs log tree commit diff stats
path: root/cpp/001test
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-02-19 15:36:49 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-02-19 15:37:47 -0800
commitf4b6b2c2876bb29c01bfd95f55347e7d74222974 (patch)
tree151c84af6dca71de824267275e4edfb665ec2a26 /cpp/001test
parentcae5461b1dfeb70dac6b66192fc6b12952beb723 (diff)
downloadmu-f4b6b2c2876bb29c01bfd95f55347e7d74222974.tar.gz
784 - persist traces in literate version
Diffstat (limited to 'cpp/001test')
-rw-r--r--cpp/001test2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/001test b/cpp/001test
index 45ec591d..ed10e97e 100644
--- a/cpp/001test
+++ b/cpp/001test
@@ -20,6 +20,8 @@ bool Passed = true;
 
 long Num_failures = 0;
 
+#define TEST(name) void test_##name() { Trace_file = #name;
+
 #define CHECK(X) \
   if (!(X)) { \
     ++Num_failures; \