[devhelp] Do not hardcode API version: in unit-tests/



commit 37c25cf24a249a9621cba2f9cb3a2828f9e738d6
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jun 16 15:29:12 2018 +0200

    Do not hardcode API version: in unit-tests/
    
    This doesn't change anything for the unit tests, so it's better to not
    add the API version, otherwise the unit tests would look outdated when
    bumping the API version.

 unit-tests/test-link.c           | 2 +-
 unit-tests/test-search-context.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/unit-tests/test-link.c b/unit-tests/test-link.c
index a1b37a12..d0200e49 100644
--- a/unit-tests/test-link.c
+++ b/unit-tests/test-link.c
@@ -20,7 +20,7 @@
 
 #include <devhelp/devhelp.h>
 
-#define DEVHELP_BOOK_BASE_PATH "/usr/share/gtk-doc/html/devhelp-3"
+#define DEVHELP_BOOK_BASE_PATH "/usr/share/gtk-doc/html/devhelp"
 
 static void
 check_belongs_to_page_book_link (DhLink *book_link)
diff --git a/unit-tests/test-search-context.c b/unit-tests/test-search-context.c
index 1a99ab9b..29706d55 100644
--- a/unit-tests/test-search-context.c
+++ b/unit-tests/test-search-context.c
@@ -183,7 +183,7 @@ check_link_simple (const gchar *search_string,
         search_context = _dh_search_context_new (search_string);
         g_assert (search_context != NULL);
 
-        book_link = dh_link_new_book ("/usr/share/gtk-doc/html/devhelp-3",
+        book_link = dh_link_new_book ("/usr/share/gtk-doc/html/devhelp",
                                       "devhelp",
                                       "Devhelp Reference Manual",
                                       "index.html");


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