Merge branch 'wip/dueno/disable-assert-tests' into 'master'

tests: undef G_DISABLE_ASSERT

Closes #26

See merge request GNOME/libsecret!33
This commit is contained in:
Daiki Ueno 2019-06-29 05:10:05 +00:00
commit 9a8f49f237
15 changed files with 31 additions and 0 deletions

View File

@ -22,6 +22,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "egg/egg-dh.h" #include "egg/egg-dh.h"
#include "egg/egg-secure-memory.h" #include "egg/egg-secure-memory.h"
#include "egg/egg-testing.h" #include "egg/egg-testing.h"

View File

@ -22,6 +22,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "egg/egg-hex.h" #include "egg/egg-hex.h"
#include <stdlib.h> #include <stdlib.h>

View File

@ -22,6 +22,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -32,6 +34,8 @@
#include <gcrypt.h> #include <gcrypt.h>
#undef G_DISABLE_ASSERT
EGG_SECURE_DEFINE_GLIB_GLOBALS (); EGG_SECURE_DEFINE_GLIB_GLOBALS ();
static void static void

View File

@ -22,6 +22,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "egg/egg-secure-memory.h" #include "egg/egg-secure-memory.h"
#include <glib.h> #include <glib.h>

View File

@ -110,4 +110,5 @@ secret_get_schema (SecretSchemaType type)
default: default:
g_assert_not_reached (); g_assert_not_reached ();
} }
g_return_val_if_reached (NULL);
} }

View File

@ -15,6 +15,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-attributes.h" #include "secret-attributes.h"
#include "secret-private.h" #include "secret-private.h"

View File

@ -15,6 +15,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-collection.h" #include "secret-collection.h"
#include "secret-service.h" #include "secret-service.h"
#include "secret-paths.h" #include "secret-paths.h"

View File

@ -15,6 +15,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-collection.h" #include "secret-collection.h"
#include "secret-item.h" #include "secret-item.h"
#include "secret-service.h" #include "secret-service.h"

View File

@ -13,6 +13,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-attributes.h" #include "secret-attributes.h"
#include "secret-collection.h" #include "secret-collection.h"
#include "secret-item.h" #include "secret-item.h"

View File

@ -14,6 +14,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-password.h" #include "secret-password.h"
#include "secret-paths.h" #include "secret-paths.h"
#include "secret-private.h" #include "secret-private.h"

View File

@ -13,6 +13,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-attributes.h" #include "secret-attributes.h"
#include "secret-collection.h" #include "secret-collection.h"
#include "secret-item.h" #include "secret-item.h"

View File

@ -15,6 +15,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-item.h" #include "secret-item.h"
#include "secret-service.h" #include "secret-service.h"
#include "secret-private.h" #include "secret-private.h"

View File

@ -13,6 +13,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-collection.h" #include "secret-collection.h"
#include "secret-item.h" #include "secret-item.h"
#include "secret-service.h" #include "secret-service.h"

View File

@ -13,6 +13,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-item.h" #include "secret-item.h"
#include "secret-service.h" #include "secret-service.h"
#include "secret-paths.h" #include "secret-paths.h"

View File

@ -13,6 +13,8 @@
#include "config.h" #include "config.h"
#undef G_DISABLE_ASSERT
#include "secret-value.h" #include "secret-value.h"
#include "secret-private.h" #include "secret-private.h"