CF unit test SCCFprf_modarray4ivecyc.sac loses WL partition during scanparse
|
|
Bugzilla Link |
965 |
Created on |
Jun 02, 2012 22:22 |
Resolution |
FIXED |
Resolved on |
Jun 02, 2012 22:23 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
This arose 2012-06-01, when I was running CF unit tests.
Basically scanparse is evaporating a WL partition.
Although this might make the code easier to parse, it has
the unfortunate effect of giving wrong answers.
Build #17859 claims to fix it.
I have created a directory for scanparse unit tests,
~/sac/testsuite/scanparse, and populated it with this failing
test case and appropriate driver scripts, as documented here:
http://www.sac-home.org/index.php?p=.%2F99_protected_Internal%2F041_Unit_Testing
The new build appears to work better now. Here is old vs. new:
UnitTestRunWorks1 nonscalarcell.sac
Worktest: nonscalarcell.sac failed with completion code 32
sac@rattler:~/sac/testsuite/scanparse$ UnitTestRunGrep1 nonscalarcell.sac
UnitTestRunGrep1 testing: nonscalarcell.sac
Greptest: nonscalarcell.sac -noopt failed with 1 hits on phrase "iv". Wanted 2 hits
Greptest: nonscalarcell.sac failed with 1 hits on phrase "iv". Wanted 2 hits
sac@rattler:~/sac/testsuite/scanparse$ sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 17858 linux-gnu_x86_64
(Sat Jun 2 17:14:23 EDT 2012 by sac)
--------------------------------------------
sac@rattler:~/sac/testsuite/scanparse$ sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 17861 linux-gnu_x86_64
(Sat Jun 2 17:16:14 EDT 2012 by sac)
sac@rattler:~/sac/testsuite/scanparse$ UnitTestRunWorks1 nonscalarcell.sac
sac@rattler:~/sac/testsuite/scanparse$ UnitTestRunGrep1 nonscalarcell.sac
UnitTestRunGrep1 testing: nonscalarcell.sac
sac@rattler:~/sac/testsuite/scanparse$