From: Mathieu Desnoyers Date: Wed, 23 Feb 2011 19:48:59 +0000 (-0500) Subject: Add failure test cases X-Git-Tag: v0.1~189 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=5522e7557daa68212fa3eccfff09cfdb7f4612e8 Add failure test cases Signed-off-by: Mathieu Desnoyers --- diff --git a/formats/ctf/metadata/ctf-test/fail/enum-with-non-numeric-range.txt b/formats/ctf/metadata/ctf-test/fail/enum-with-non-numeric-range.txt index 557fa665..a5fa9900 100644 --- a/formats/ctf/metadata/ctf-test/fail/enum-with-non-numeric-range.txt +++ b/formats/ctf/metadata/ctf-test/fail/enum-with-non-numeric-range.txt @@ -1 +1 @@ -enum{X = array[2].N ... 1, }; +enum test {X = array[2].N ... 1, }; diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-2.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-2.txt new file mode 100644 index 00000000..f881e6d1 --- /dev/null +++ b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-2.txt @@ -0,0 +1 @@ +struct test { a.array[3].N = test; }; diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-3.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-3.txt new file mode 100644 index 00000000..4eb8f983 --- /dev/null +++ b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-3.txt @@ -0,0 +1 @@ +struct test { a->array[3].N = test; }; diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-4.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-4.txt new file mode 100644 index 00000000..ebb93696 --- /dev/null +++ b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-4.txt @@ -0,0 +1 @@ +struct test { array[1] = blah; }; diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-5.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-5.txt new file mode 100644 index 00000000..a3733be5 --- /dev/null +++ b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-5.txt @@ -0,0 +1 @@ +struct test { 42 = test; }; diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt new file mode 100644 index 00000000..17b46ca5 --- /dev/null +++ b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt @@ -0,0 +1 @@ +struct test { array[3].N = test; };