Mercurial > octave
changeset 24459:b728b7ac1601
Add BIST test for bug #52722.
* test/module.mk: Add bug-52722 directory to build system.
* test/bug-52722/bug-52722.tst, test/bug-52722/define_globals.m,
test/bug-52722/include_globals.m, test/bug-52722/module.mk: New test files.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 23 Dec 2017 21:04:14 -0800 |
parents | 516437d2194d |
children | 892f7f096ffb |
files | test/bug-52722/bug-52722.tst test/bug-52722/define_globals.m test/bug-52722/include_globals.m test/bug-52722/module.mk test/module.mk |
diffstat | 5 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug-52722/bug-52722.tst Sat Dec 23 21:04:14 2017 -0800 @@ -0,0 +1,2 @@ +%!test +%! eval ("include_globals");
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug-52722/define_globals.m Sat Dec 23 21:04:14 2017 -0800 @@ -0,0 +1,2 @@ +global a b c +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug-52722/include_globals.m Sat Dec 23 21:04:14 2017 -0800 @@ -0,0 +1,8 @@ +## Include script globals.m which defines global variables +define_globals + +## Test for presence of a global variable defined above +if (! isglobal ("c")) + error ("global variable 'c' not defined"); +endif +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug-52722/module.mk Sat Dec 23 21:04:14 2017 -0800 @@ -0,0 +1,6 @@ +bug_52722_TEST_FILES = \ + %reldir%/bug-52722.tst \ + %reldir%/define_globals.m \ + %reldir%/include_globals.m + +TEST_FILES += $(bug_52722_TEST_FILES)
--- a/test/module.mk Sat Dec 23 14:58:27 2017 -0500 +++ b/test/module.mk Sat Dec 23 21:04:14 2017 -0800 @@ -64,6 +64,7 @@ include %reldir%/bug-51534/module.mk include %reldir%/bug-51599/module.mk include %reldir%/bug-52075/module.mk +include %reldir%/bug-52722/module.mk include %reldir%/class-concat/module.mk include %reldir%/classdef/module.mk include %reldir%/classdef-multiple-inheritance/module.mk