summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/attn/test/attntesttrace.H
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2012-05-17 09:12:42 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-07-16 18:38:10 -0500
commit19b2fa16137b10e1c34b71bec450a36eee1a0545 (patch)
tree54f947b39816072ecd314036f3afc6bf7865a67c /src/usr/diag/attn/test/attntesttrace.H
parent43c18103e9bdbbf1fd17bfcccf885c64d07f305c (diff)
downloadtalos-hostboot-19b2fa16137b10e1c34b71bec450a36eee1a0545.tar.gz
talos-hostboot-19b2fa16137b10e1c34b71bec450a36eee1a0545.zip
Initial attention handler support.
RTC: 40764 Change-Id: Ic5b5b3e80915cb4f0ee543baa6fe4abc51e07ad2 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1079 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/diag/attn/test/attntesttrace.H')
-rw-r--r--src/usr/diag/attn/test/attntesttrace.H72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/usr/diag/attn/test/attntesttrace.H b/src/usr/diag/attn/test/attntesttrace.H
new file mode 100644
index 000000000..b72982ed8
--- /dev/null
+++ b/src/usr/diag/attn/test/attntesttrace.H
@@ -0,0 +1,72 @@
+// IBM_PROLOG_BEGIN_TAG
+// This is an automatically generated prolog.
+//
+// $Source: src/usr/diag/attn/test/attntesttrace.H $
+//
+// IBM CONFIDENTIAL
+//
+// COPYRIGHT International Business Machines Corp. 2012
+//
+// p1
+//
+// Object Code Only (OCO) source materials
+// Licensed Internal Code Source Materials
+// IBM HostBoot Licensed Internal Code
+//
+// The source code for this program is not published or other-
+// wise divested of its trade secrets, irrespective of what has
+// been deposited with the U.S. Copyright Office.
+//
+// Origin: 30
+//
+// IBM_PROLOG_END
+#ifndef __TEST_ATTNTESTTRACE_H
+#define __TEST_ATTNTESTTRACE_H
+
+/**
+ * @file attntesttrace.H
+ *
+ * @brief Unit test for the attntrace module.
+ */
+
+#include "../attnfwd.H"
+#include "../attntrace.H"
+#include <cxxtest/TestSuite.H>
+
+/**
+ * @brief AttnTraceTest Unit test for the attntrace module.
+ */
+class AttnTraceTest : public CxxTest::TestSuite
+{
+ public:
+
+ /**
+ * @brief testTrace Unit test for ATTN trace
+ * macros.
+ */
+ void testTrace(void)
+ {
+ using namespace ATTN;
+
+ TS_TRACE(ENTER_MRK "testTrace");
+
+ ATTN_FAST("attn trace unit test");
+ ATTN_FAST("attn trace unit test: %p", 0);
+ ATTN_FAST("attn trace unit test: %d", 1234);
+
+ ATTN_DBG("attn trace unit test");
+ ATTN_DBG("attn trace unit test: %p", 0);
+ ATTN_DBG("attn trace unit test: %d", 1234);
+
+ ATTN_ERR("attn trace unit test");
+ ATTN_ERR("attn trace unit test: %p", 0);
+ ATTN_ERR("attn trace unit test: %d", 1234);
+
+ ATTN_SLOW("attn trace unit test");
+ ATTN_SLOW("attn trace unit test: %p", 0);
+ ATTN_SLOW("attn trace unit test: %d", 1234);
+
+ TS_TRACE(EXIT_MRK "testTrace");
+ }
+};
+#endif
OpenPOWER on IntegriCloud