diff options
author | Richard Hughes <richard@hughsie.com> | 2014-08-05 22:56:08 +0200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-08-05 22:56:08 +0200 |
commit | a4785ec5393e0177a66f2414f2ec82b96ee3e149 (patch) | |
tree | 829b39ba567deb036fa9e1afa72101cf43c2a0ab | |
parent | 37ddd0ad2cc67bec81552bb70c88afc10379f4be (diff) | |
download | appstream-glib-a4785ec5393e0177a66f2414f2ec82b96ee3e149.tar.gz |
trivial: Do not use the local AppData files for the speed test
Doing so will make distcheck failed if broken files are installed.
-rw-r--r-- | libappstream-glib/as-self-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c index 12061b9..5e29abb 100644 --- a/libappstream-glib/as-self-test.c +++ b/libappstream-glib/as-self-test.c @@ -1985,12 +1985,18 @@ as_test_store_speed_appdata_func (void) gboolean ret; guint i; guint loops = 10; + _cleanup_free_ gchar *filename = NULL; _cleanup_timer_destroy_ GTimer *timer = NULL; + filename = as_test_get_filename ("."); timer = g_timer_new (); for (i = 0; i < loops; i++) { _cleanup_object_unref_ AsStore *store; store = as_store_new (); + as_store_set_destdir (store, filename); + g_test_expect_message (G_LOG_DOMAIN, + G_LOG_LEVEL_WARNING, + "ignoring description '*' from */broken.appdata.xml: Unknown tag '_p'"); ret = as_store_load (store, AS_STORE_LOAD_FLAG_APPDATA, NULL, &error); g_assert_no_error (error); g_assert (ret); |