mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Release calc version 2.11.0t8.10
This commit is contained in:
@@ -7165,6 +7165,9 @@ print '189: parsed test_somenew()';
|
||||
*/
|
||||
define test_quit()
|
||||
{
|
||||
local x8400 = 23209; /* watch for lost memory */
|
||||
static s8400 = 21701; /* watch for lost memory */
|
||||
|
||||
print '8400: Starting test_quit';
|
||||
|
||||
quit;
|
||||
@@ -7464,8 +7467,9 @@ print '8310: Ending define tests';
|
||||
print;
|
||||
return test_quit();
|
||||
read -once test8400;
|
||||
print '8402: read -once test8400';
|
||||
print '8403: Ending test_quit';
|
||||
print '8404: read -once test8400';
|
||||
vrfy(test8400() == 64434, '8405: test8400() == 64434');
|
||||
print '8406: Ending test_quit';
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -12,5 +12,19 @@
|
||||
*/
|
||||
|
||||
print "8401: in test8400.cal";
|
||||
|
||||
/*
|
||||
* test8400 - dummy function to allow a check of quit-based memory leaks
|
||||
*/
|
||||
define test8400()
|
||||
{
|
||||
local x8401 = 19937; /* watch for lost memory */
|
||||
static s8401 = 44497; /* watch for lost memory */
|
||||
|
||||
return x8401+s8401;
|
||||
}
|
||||
print "8402: parsed test8400()";
|
||||
vrfy(test8400() == 64434, '8403: test8400() == 64434');
|
||||
|
||||
quit;
|
||||
prob('quit did not end test8400.cal');
|
||||
|
Reference in New Issue
Block a user