Commit 2e259756 authored by Sergio Costas's avatar Sergio Costas

Removed unneeded code in unitest

parent d92ed40e
......@@ -760,7 +760,7 @@ class Test(unittest.TestCase):
self._generic_test("unitest/test168.c", [ (crust.crust.MSG_ERROR, "Function '{:s}' expects a borrowed value to return, but a non-borrowed was used at line {:d}", "function1", 6) ])
def test169ReturnedFreedValue(self):
self._generic_test("unitest/test169.c", [ (crust.crust.MSG_ERROR, "Returning variable '{:s}' at line {:d} was freed at line {:d}", "param", 9, 8) ])
self._generic_test("unitest/test169.c", [ (crust.crust.MSG_ERROR, "Returning variable '{:s}' at line {:d} was freed at line {:d}", "param", 7, 6) ])
def test170ReturnedUninitializedValue(self):
self._generic_test("unitest/test170.c", [ (crust.crust.MSG_ERROR, "Returning variable '{:s}' at line {:d} is uninitialized", "param", 5) ])
......
typedef __crust__ unsigned char *crust_t;
#define NULL ((void *)0)
void function1(crust_t param);
crust_t function2(crust_t param) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment