diff options
author | Joe Slater <joe.slater@windriver.com> | 2019-06-06 10:02:31 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-07 09:11:49 +0100 |
commit | d3b40352e4a370790eaa92a0c416df30be57c22b (patch) | |
tree | bbb8738c3802fd7f3b69e8b8c7f3393f35b8ddec | |
parent | 1095ee1f623f9c3ab05ee62ac6fffebb95e7c39c (diff) | |
download | poky-d3b40352e4a370790eaa92a0c416df30be57c22b.tar.gz |
slang: modify an array test
One array test attempts to create an array that is far too
large to exist. Different exceptions are thrown for 32 and 64
bit machines, so we account for that when catching them.
(From OE-Core rev: 03e3721674fe7fc22911ec738524cef86c7a5357)
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/slang/slang/array_test.patch | 20 | ||||
-rw-r--r-- | meta/recipes-extended/slang/slang_2.3.2.bb | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-extended/slang/slang/array_test.patch b/meta/recipes-extended/slang/slang/array_test.patch new file mode 100644 index 0000000000..ccd416f207 --- /dev/null +++ b/meta/recipes-extended/slang/slang/array_test.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | slang: modify array test | ||
2 | |||
3 | One array test tries to create an array that is far too large and anticipates an exception. | ||
4 | IndexError will only be thrown for 64 bit machines, so we add InvalidParmError for 32 bit ones. | ||
5 | |||
6 | Upstream-Status: Submitted [jedsoft.org] | ||
7 | |||
8 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
9 | |||
10 | --- a/src/test/array.sl | ||
11 | +++ b/src/test/array.sl | ||
12 | @@ -165,7 +165,7 @@ try | ||
13 | { | ||
14 | SS = Long_Type[10000,10000,10000,10000,10000,10000]; | ||
15 | } | ||
16 | -catch IndexError; | ||
17 | +catch IndexError,InvalidParmError; | ||
18 | |||
19 | private define array_map2_func () | ||
20 | { | ||
diff --git a/meta/recipes-extended/slang/slang_2.3.2.bb b/meta/recipes-extended/slang/slang_2.3.2.bb index e329310937..99efb16da6 100644 --- a/meta/recipes-extended/slang/slang_2.3.2.bb +++ b/meta/recipes-extended/slang/slang_2.3.2.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "http://www.jedsoft.org/releases/${BPN}/${BP}.tar.bz2 \ | |||
19 | file://dont-link-to-host.patch \ | 19 | file://dont-link-to-host.patch \ |
20 | file://test-add-output-in-the-format-result-testname.patch \ | 20 | file://test-add-output-in-the-format-result-testname.patch \ |
21 | file://terminfo_fixes.patch \ | 21 | file://terminfo_fixes.patch \ |
22 | file://array_test.patch \ | ||
22 | file://run-ptest \ | 23 | file://run-ptest \ |
23 | " | 24 | " |
24 | 25 | ||