thewisenerd / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

Enable system tests that throw an exception #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bryan introduced me to a great little way to have a system test expect an 
exception.  In the test's t???.c file:

    retval = pm_run((uint8_t *)"t???");
    return (int) !(retval == PM_RET_EX_MEM);

Original issue reported on code.google.com by dwhall...@gmail.com on 5 Aug 2010 at 2:10

GoogleCodeExporter commented 9 years ago
r600
- Enabled tests: t119, t132, t136, t148, t149, t190, t202, t248, t258
- Made t321.c look like other enabled tests
- Did not enable t157 because TypeError for wrong number of args is already 
tested
- Enabled a test in t148 discovered a lack of ZeroDivisionError
- Corrected missing ZeroDivisionError in vm/float.c

Tests pass
Mainlined directly

Original comment by dwhall...@gmail.com on 15 Sep 2010 at 1:30