Add test cases to validation/context.c for the Linux __cond_lock macro
commitd730502c200ec1e8de13699c51c83313552a4fc3
authorJosh Triplett <josh@freedesktop.org>
Tue, 17 Oct 2006 08:40:46 +0000 (17 01:40 -0700)
committerJosh Triplett <josh@freedesktop.org>
Tue, 24 Oct 2006 19:50:01 +0000 (24 12:50 -0700)
tree70c4759995982bf9cd7136719c6823041a2468bb
parent8bcd6b41a5f0d4163c8c1b8c601e5fa4baf10708
Add test cases to validation/context.c for the Linux __cond_lock macro

Linux uses a macro __cond_lock with an embedded ternary operator and a
__context__ expression down one branch in order to allow for conditional
locking, where a function might or might not have actually locked, depending
on its return value.  Add test cases for this macro.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
validation/context.c