[totem-pl-parser] tests: Don't check non-local files for parseability



commit 7e4b7963db9fdc168603d781bf1eb2704a7a9fee
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 7 22:55:39 2012 +0100

    tests: Don't check non-local files for parseability
    
    We won't be able to MMAP them, that's for sure.

 plparse/tests/parser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index af7b1b2..b47b6c8 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -262,6 +262,10 @@ test_parsability (void)
 		/* Slow test! */
 		if (files[i].slow && !g_test_slow ())
 			continue;
+		if (!g_str_has_prefix (files[i].uri, "file://") &&
+		    *files[i].uri != '/') {
+			continue;
+		}
 
 		g_test_message ("Testing filename parsing \"%s\"...", files[i].uri);
 		g_assert (totem_pl_parser_can_parse_from_filename (files[i].uri, TRUE) == files[i].parsable);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]