Skip to contentSkip to conversation

slang: modify an array test

PATCH Superseded Joe Slater 2 participants 2 messages Jun 5, 2019 – Jun 6, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 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.

---
 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
meta/recipes-extended/slang/slang/array_test.patch new file +20 -0
new file mode 100644
index 0000000..ccd416f
@@ -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 <[email protected]>
+
+--- 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 ()
+ {
Signature · 1 line
2.7.4
#1 lore raw
Quoted 9 lines · Joe Slater

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.

---
 meta/recipes-extended/slang/slang/array_test.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

...

This seems to miss actually applying the patch?

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed