summaryrefslogtreecommitdiff
path: root/tests/testdisplay.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2012-10-10 16:04:45 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-10 15:59:19 +0200
commit31dfc98a301b1071bfe483e5588cef2352dbcf13 (patch)
tree1f807f2fdd4b2f100eb3cbf49a0ce010b08b957d /tests/testdisplay.c
parent0bf5fd894c386cbb6a2419056e43d400c4dec73b (diff)
fix warn in testdisplay: ignoring return value of 'chdir'
Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r--tests/testdisplay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 39c42659..cd83d9cd 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -647,6 +647,7 @@ static void enter_exec_path( char **argv )
char *exec_path = NULL;
char *pos = NULL;
short len_path = 0;
+ int ret;
len_path = strlen( argv[0] );
exec_path = (char*) malloc(len_path);
@@ -656,7 +657,8 @@ static void enter_exec_path( char **argv )
if (pos != NULL)
*(pos+1) = '\0';
- chdir(exec_path);
+ ret = chdir(exec_path);
+ assert(ret == 0);
free(exec_path);
}