modetest: fix the error path handling
authorJoonyoung Shim <jy0922.shim@samsung.com>
Mon, 13 Apr 2015 08:32:16 +0000 (17:32 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Apr 2015 12:04:49 +0000 (13:04 +0100)
commit21170a8c63d2e994317b785f7f7e78ab7e0a4ac4
tree4b9290b301c5eef60d1e91527aded8bc46365ca4
parentbcaaa75cf482c7d218340c850ffc01f04b78b3dd
modetest: fix the error path handling

Remove the framebuffer and destroy the bo when error occurs on set_mode
and test_page_flip.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
[Emil Velikov: Tweak the commit message.]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
tests/modetest/modetest.c