[1/1] slang: modify an array test

Submitted by Slater, Joseph on June 5, 2019, 10:50 p.m. | Patch ID: 161989

Details

Message ID 20190605225040.213296-1-joe.slater@windriver.com
State Master Next
Commit 5c196935b46e150fe72e035ac0f7628cd2d2a912
Headers show

Commit Message

Slater, Joseph June 5, 2019, 10:50 p.m.
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.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
---
 meta/recipes-extended/slang/slang/array_test.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta/recipes-extended/slang/slang/array_test.patch

Patch hide | download patch | download mbox

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 0000000..ccd416f
--- /dev/null
+++ b/meta/recipes-extended/slang/slang/array_test.patch
@@ -0,0 +1,20 @@ 
+slang: modify array test
+
+One array test tries to create an array that is far too large and anticipates an exception.
+IndexError will only be thrown for 64 bit machines, so we add InvalidParmError for 32 bit ones.
+
+Upstream-Status: Submitted [jedsoft.org]
+
+Signed-off-by: Joe Slater <joe.slater@windriver.com>
+
+--- a/src/test/array.sl
++++ b/src/test/array.sl
+@@ -165,7 +165,7 @@ try
+ {
+    SS = Long_Type[10000,10000,10000,10000,10000,10000];
+ }
+-catch IndexError;
++catch IndexError,InvalidParmError;
+ 
+ private define array_map2_func ()
+ {

Comments

Adrian Bunk June 6, 2019, 3:35 p.m.
On Wed, Jun 05, 2019 at 03:50:40PM -0700, Joe Slater wrote:
> 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.
> 
> Signed-off-by: Joe Slater <joe.slater@windriver.com>
> ---
>  meta/recipes-extended/slang/slang/array_test.patch | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>...

This seems to miss actually applying the patch?

cu
Adrian