aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@gmail.com>2007-07-02 06:41:39 +0200
committerJosh Triplett <josh@freedesktop.org>2007-07-08 12:17:44 -0700
commitb19090fe82cd8ca9b870eac46067f477f881ea70 (patch)
treeafe5eb3ebd83579b8a543efab840658757c0b85c /validation/struct-as.c
parenttest-suite documentation (diff)
downloadsparse-b19090fe82cd8ca9b870eac46067f477f881ea70.tar.gz
sparse-b19090fe82cd8ca9b870eac46067f477f881ea70.tar.bz2
sparse-b19090fe82cd8ca9b870eac46067f477f881ea70.zip
Sample test-suite test cases
A few examples meant to show the use of test-suite Signed-off-by: Damien Lespiau <damien.lespiau@gmail.com>
Diffstat (limited to 'validation/struct-as.c')
-rw-r--r--validation/struct-as.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/validation/struct-as.c b/validation/struct-as.c
index 86b90d3..31bdc88 100644
--- a/validation/struct-as.c
+++ b/validation/struct-as.c
@@ -14,3 +14,9 @@ static int broken(struct hello __user *sp)
{
test(&sp->a);
}
+/*
+ * check-name: Address space of a struct member
+ *
+ * check-command: sparse $file
+ * check-exit-value: 0
+ */