summaryrefslogtreecommitdiff
path: root/test/unit/util/stats_black.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-05-04 00:21:34 +0000
committerMorgan Deters <mdeters@gmail.com>2011-05-04 00:21:34 +0000
commit691fbae1dad8689007686cf61b737da58a4c9427 (patch)
treee6dd40fc3bfd39d28e443d768106508226338452 /test/unit/util/stats_black.h
parent12d31931b48b659b78f531e98dba9d449da0137b (diff)
Stronger support for zero-performance-penalty output, and fixes and
simplifications for the "muzzled" (i.e. competition) design, which had been broken. Addition of some new unit test bits to ensure that nothing is ever called in muzzled builds, e.g. things like Warning() << expensiveFunction(); Also, fix some compiler warnings.
Diffstat (limited to 'test/unit/util/stats_black.h')
-rw-r--r--test/unit/util/stats_black.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/util/stats_black.h b/test/unit/util/stats_black.h
index e44a016e6..d32ef828c 100644
--- a/test/unit/util/stats_black.h
+++ b/test/unit/util/stats_black.h
@@ -30,7 +30,7 @@ class StatsBlack : public CxxTest::TestSuite {
public:
void testStats() {
-
+#ifdef CVC4_STATISTICS_ON
// StatisticsRegistry
//static void flushStatistics(std::ostream& out);
@@ -99,6 +99,7 @@ public:
TS_ASSERT_EQUALS(zero, sTimer.getData());
sTimer.stop();
TS_ASSERT_LESS_THAN(zero, sTimer.getData());
+#endif /* CVC4_STATISTICS_ON */
}
};
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback