From 5522e7557daa68212fa3eccfff09cfdb7f4612e8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 23 Feb 2011 14:48:59 -0500 Subject: [PATCH] Add failure test cases Signed-off-by: Mathieu Desnoyers --- .../ctf/metadata/ctf-test/fail/enum-with-non-numeric-range.txt | 2 +- .../ctf/metadata/ctf-test/fail/struct-with-non-text-left-2.txt | 1 + .../ctf/metadata/ctf-test/fail/struct-with-non-text-left-3.txt | 1 + .../ctf/metadata/ctf-test/fail/struct-with-non-text-left-4.txt | 1 + .../ctf/metadata/ctf-test/fail/struct-with-non-text-left-5.txt | 1 + .../ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-2.txt create mode 100644 formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-3.txt create mode 100644 formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-4.txt create mode 100644 formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-5.txt create mode 100644 formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt 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; }; -- 2.34.1