summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@mit.edu>2011-04-18 15:09:43 -0400
committerAndy Lutomirski <luto@mit.edu>2011-04-18 15:09:43 -0400
commit8f77f8608d1d62a3b53c0927991501c4439e867f (patch)
treea27bc70d09a5677fdfa968ff665fa2f6b27bdfa6
parentffe62acad5d1f2a8703a5726a6b662d32346dca9 (diff)
downloadmisc-tests-8f77f8608d1d62a3b53c0927991501c4439e867f.tar.gz
With -v, show the running test.
-rw-r--r--evil-clock-test.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/evil-clock-test.cc b/evil-clock-test.cc
index 4f3dc73..847c04f 100644
--- a/evil-clock-test.cc
+++ b/evil-clock-test.cc
@@ -689,6 +689,9 @@ template<typename ClockType>
static void run()
{
if (run_now_test) {
+ if (verbosity >= 1)
+ printf("Running now test...\n");
+
NowTest<ClockType> *t = new NowTest<ClockType>;
t->Start();
usleep(1000000);
@@ -707,6 +710,9 @@ static void run()
}
if (run_load3_test) {
+ if (verbosity >= 1)
+ printf("Running load3 test...\n");
+
Load3Test<ClockType> *t = new Load3Test<ClockType>;
t->Start();
usleep(1000000);
@@ -725,6 +731,9 @@ static void run()
}
if (run_load_test) {
+ if (verbosity >= 1)
+ printf("Running load test...\n");
+
LoadStoreTest<ClockType, 1> *t = new LoadStoreTest<ClockType, 1>;
t->Start();
usleep(1000000);
@@ -744,6 +753,9 @@ static void run()
}
if (run_store_test) {
+ if (verbosity >= 1)
+ printf("Running store test...\n");
+
LoadStoreTest<ClockType, 0> *t = new LoadStoreTest<ClockType, 0>;
t->Start();
usleep(1000000);