diff options
author | Werner Koch <wk@gnupg.org> | 2021-02-08 15:33:06 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2021-02-08 15:33:06 +0100 |
commit | 82395f11b444651f544f5e51c62fc6b65c04f9ef (patch) | |
tree | e699cc355761c2c29ec635c4f1987101fde3804e | |
parent | ebc4d5670a1ada54ad907a4836eb8f6f573c2c38 (diff) | |
download | libgcrypt-82395f11b444651f544f5e51c62fc6b65c04f9ef.tar.gz |
tests: Fix minor glitches.
* tests/basic.c (ALWAYS_INLINE): Make sure it is defined.
* tests/version.c (main): Print the config info to stdout.
--
We need to have the config output at stdout so that the testdrv is
able to show or suppress it.
Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r-- | tests/basic.c | 2 | ||||
-rw-r--r-- | tests/version.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/basic.c b/tests/basic.c index b4757d9c..2b543846 100644 --- a/tests/basic.c +++ b/tests/basic.c @@ -35,6 +35,8 @@ #if __GNUC__ >= 4 # define ALWAYS_INLINE __attribute__((always_inline)) +#else +# define ALWAYS_INLINE #endif typedef struct test_spec_pubkey_key diff --git a/tests/version.c b/tests/version.c index 1d540ba4..9d3a3c24 100644 --- a/tests/version.c +++ b/tests/version.c @@ -157,10 +157,9 @@ main (int argc, char **argv) exit (1); } - xgcry_control ((GCRYCTL_PRINT_CONFIG, NULL)); + xgcry_control ((GCRYCTL_PRINT_CONFIG, stdout)); test_get_config (); - return 0; } |