diff options
author | Stef Walter <stefw@collabora.co.uk> | 2010-11-24 16:12:16 +0000 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2010-11-24 17:24:59 +0000 |
commit | 7e72a23ee92c7ac3aff1669015de3e7b5aff93a0 (patch) | |
tree | 64d55224c914daa62f4d84d54ed353b74d45aae8 /ui | |
parent | c41a0b14ea371ac6f6cc549a7226b98ba51cd5a9 (diff) | |
download | gnome-keyring-7e72a23ee92c7ac3aff1669015de3e7b5aff93a0.tar.gz |
[testing] Preprocess test files before searching for tests.
* Allows tests to be commented out or ifdefed.
* Faster building of tests.
* Other cleanup of tests.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tests/unit-test-util.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/tests/unit-test-util.c b/ui/tests/unit-test-util.c index 1752d4cb..6c9d1cdc 100644 --- a/ui/tests/unit-test-util.c +++ b/ui/tests/unit-test-util.c @@ -33,19 +33,19 @@ static GKeyFile *key_file = NULL; -DEFINE_SETUP(prompt_util) +TESTING_SETUP(prompt_util) { egg_libgcrypt_initialize (); key_file = g_key_file_new (); } -DEFINE_TEARDOWN(prompt_util) +TESTING_TEARDOWN(prompt_util) { g_key_file_free (key_file); key_file = NULL; } -DEFINE_TEST(encode_decode_mpi) +TESTING_TEST(encode_decode_mpi) { gcry_mpi_t mpi, check; @@ -61,7 +61,7 @@ DEFINE_TEST(encode_decode_mpi) gcry_mpi_release (check); } -DEFINE_TEST(decode_nonexistant_mpi) +TESTING_TEST(decode_nonexistant_mpi) { gcry_mpi_t mpi; @@ -69,7 +69,7 @@ DEFINE_TEST(decode_nonexistant_mpi) g_assert_not_reached (); } -DEFINE_TEST(encode_decode_hex) +TESTING_TEST(encode_decode_hex) { gchar buffer[32]; gpointer check; @@ -85,7 +85,7 @@ DEFINE_TEST(encode_decode_hex) g_free (check); } -DEFINE_TEST(decode_nonexistant_hex) +TESTING_TEST(decode_nonexistant_hex) { gsize n_data; @@ -126,7 +126,7 @@ do_encrypt_decrypt_text (const gchar *text) g_assert_cmpstr (check, ==, text); } -DEFINE_TEST(encrypt_decrypt_text) +TESTING_TEST(encrypt_decrypt_text) { do_encrypt_decrypt_text (""); do_encrypt_decrypt_text ("blah"); |