summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2011-09-16 18:06:27 -0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-09-16 22:21:52 +0200
commit17ceccedbf8c09368b72ecc4afe12f0d1e63837e (patch)
treebd24970761213d58dc70e10da8d599c9e1562eea /tests
parenta167425b39c01a729ed3b2ef5a1d17e83edb720f (diff)
testdisplay: return 0 when successful
We use the "ret" variable to check function return values, and these values are not necessarily 0 on the successful cases, so we need to reset "ret" after we finish using it. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/testdisplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index d650537..01f31dc 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -1136,6 +1136,8 @@ int main(int argc, char **argv)
goto out_stdio_off;
}
+ ret = 0;
+
if (!update_display()) {
ret = 1;
goto out_stdio_off;