From: Mathieu Desnoyers Date: Wed, 23 Feb 2011 19:48:59 +0000 (-0500) Subject: Add failure test cases X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5522e7557daa68212fa3eccfff09cfdb7f4612e8;p=deliverable%2Fbabeltrace.git 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 557fa6655..a5fa99002 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 000000000..f881e6d18 --- /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 000000000..4eb8f9838 --- /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 000000000..ebb93696a --- /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 000000000..a3733be50 --- /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 000000000..17b46ca5a --- /dev/null +++ b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt @@ -0,0 +1 @@ +struct test { array[3].N = test; };