Commit d92ed40e authored by Sergio Costas's avatar Sergio Costas

Removed unused code in unitary test

parent c0af7aa1
......@@ -763,7 +763,7 @@ class Test(unittest.TestCase):
self._generic_test("unitest/test169.c", [ (crust.crust.MSG_ERROR, "Returning variable '{:s}' at line {:d} was freed at line {:d}", "param", 9, 8) ])
def test170ReturnedUninitializedValue(self):
self._generic_test("unitest/test170.c", [ (crust.crust.MSG_ERROR, "Returning variable '{:s}' at line {:d} is uninitialized", "param", 9) ])
self._generic_test("unitest/test170.c", [ (crust.crust.MSG_ERROR, "Returning variable '{:s}' at line {:d} is uninitialized", "param", 5) ])
def test171IgnoreBorrowReturnValue(self):
self._all_fine_test("unitest/test171.c")
......
typedef __crust__ unsigned char *crust_t;
#define NULL ((void *)0)
void function1(crust_t param);
crust_t function2() {
crust_t param;
return param; // ERROR: returning an uninitialized variable
......
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