summaryrefslogtreecommitdiff
path: root/tests/locking-selftest-wlock.h
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2008-02-11 16:16:42 +0530
committerSam Ravnborg <sam@ravnborg.org>2008-02-12 23:29:18 +0100
commit32c308c1e302b870c2d2da349b9f00303091d5f4 (patch)
tree20d8bd79c35ae5a2c79eec439e11964ca208052a /tests/locking-selftest-wlock.h
parentd9a8a7e45430a895d255fa81b6c242172930c76e (diff)
Move locking selftests to tests/
Move the locking-selftest infrastructure to tests/ Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'tests/locking-selftest-wlock.h')
-rw-r--r--tests/locking-selftest-wlock.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/locking-selftest-wlock.h b/tests/locking-selftest-wlock.h
new file mode 100644
index 000000000000..0815322d99ed
--- /dev/null
+++ b/tests/locking-selftest-wlock.h
@@ -0,0 +1,14 @@
+#undef LOCK
+#define LOCK WL
+
+#undef UNLOCK
+#define UNLOCK WU
+
+#undef RLOCK
+#define RLOCK RL
+
+#undef WLOCK
+#define WLOCK WL
+
+#undef INIT
+#define INIT RWI