Changeset: 1c674df3b8f8 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1c674df3b8f8
Modified Files:
        sql/backends/monet5/config_rss/test_rss.c
        sql/backends/monet5/config_rss/test_rss.mal
        sql/test/configurable_rss/Tests/rss.py
Branch: config_rss
Log Message:

Use lng return type instead of int.


diffs (34 lines):

diff --git a/sql/backends/monet5/config_rss/test_rss.c 
b/sql/backends/monet5/config_rss/test_rss.c
--- a/sql/backends/monet5/config_rss/test_rss.c
+++ b/sql/backends/monet5/config_rss/test_rss.c
@@ -17,7 +17,7 @@
 
 #define TEST_FILE "test_file"
 
-mal_export str TESTrestricted_rss(int* RetVal, lng* GDK_mem_maxsize /*in 
bytes*/)
+mal_export str TESTrestricted_rss(lng* RetVal, lng* GDK_mem_maxsize /*in 
bytes*/)
 {
        *RetVal = 0; // Use a dummy return value to make interfacing with 
sql/mal easy.
 
diff --git a/sql/backends/monet5/config_rss/test_rss.mal 
b/sql/backends/monet5/config_rss/test_rss.mal
--- a/sql/backends/monet5/config_rss/test_rss.mal
+++ b/sql/backends/monet5/config_rss/test_rss.mal
@@ -1,5 +1,5 @@
 module test_config_rss;
 
-command run_test_config_rss(GDK_mem_maxsize:lng):int 
+command run_test_config_rss(GDK_mem_maxsize:lng):lng
 address TESTrestricted_rss
 comment "C code will allocate memory and test whether the configured rss limit 
is violated.";
diff --git a/sql/test/configurable_rss/Tests/rss.py 
b/sql/test/configurable_rss/Tests/rss.py
--- a/sql/test/configurable_rss/Tests/rss.py
+++ b/sql/test/configurable_rss/Tests/rss.py
@@ -9,7 +9,7 @@ class RSSTestConfig:
     sql_template = \
 """
 create function test_rss(bound bigint)
-returns int external name test_config_rss.run_test_config_rss;
+returns bigint external name test_config_rss.run_test_config_rss;
 
 select test_rss({gdk_mem_maxsize});
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to