summaryrefslogtreecommitdiff
path: root/tests/examples
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-04-07 15:30:30 +0100
committerLuis de Bethencourt <luis.bg@samsung.com>2015-04-07 15:30:30 +0100
commit1cee2578043002cba35aafac8a6a7b1e60df0d81 (patch)
tree55988db63f4cc7726c1a87a6df106f9b7222dc95 /tests/examples
parent4d78375d4985e1155d7dd4713605bca369e98e45 (diff)
tests: check file exists before running appsink-src
Diffstat (limited to 'tests/examples')
-rw-r--r--tests/examples/app/appsink-src.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/examples/app/appsink-src.c b/tests/examples/app/appsink-src.c
index a5e18a7ab..b0de46b03 100644
--- a/tests/examples/app/appsink-src.c
+++ b/tests/examples/app/appsink-src.c
@@ -128,6 +128,11 @@ main (int argc, char *argv[])
else
filename = g_strdup ("/usr/share/sounds/ekiga/ring.wav");
+ if (!g_file_test (filename, G_FILE_TEST_EXISTS)) {
+ g_print ("File %s does not exist\n", filename);
+ return -1;
+ }
+
data = g_new0 (ProgramData, 1);
data->loop = g_main_loop_new (NULL, FALSE);