X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test_context.c;h=0db2163f7f117edb30deb11f6910722df503988a;hb=336c30e54ca42f54641ee06c9dce26ecd454b6ea;hp=2348f59c7037e597fc0e854124dd4c1710b86e2b;hpb=b3cccff00b9688b00a90eadd8f018dbd676747bf;p=openssl-gost%2Fengine.git diff --git a/test_context.c b/test_context.c index 2348f59..0db2163 100644 --- a/test_context.c +++ b/test_context.c @@ -28,9 +28,9 @@ #define cDBLUE "\033[0;34m" #define cNORM "\033[m" #define TEST_ASSERT(e) {if ((test = (e))) \ - printf(cRED " Test FAILED\n" cNORM); \ + printf(cRED " Test FAILED" cNORM "\n"); \ else \ - printf(cGREEN " Test passed\n" cNORM);} + printf(cGREEN " Test passed" cNORM "\n");} static void hexdump(const void *ptr, size_t len) { @@ -61,7 +61,7 @@ static int test_contexts_cipher(int nid, const int enc, int acpkm) const EVP_CIPHER *type = EVP_get_cipherbynid(nid); const char *name = EVP_CIPHER_name(type); - printf(cBLUE "%s test for %s (nid %d)\n" cNORM, + printf(cBLUE "%s test for %s (nid %d)" cNORM "\n", enc ? "Encryption" : "Decryption", name, nid); /* produce base encryption */ @@ -137,7 +137,7 @@ static int test_contexts_digest(int nid, int mac) const EVP_MD *type = EVP_get_digestbynid(nid); const char *name = EVP_MD_name(type); - printf(cBLUE "Digest test for %s (nid %d)\n" cNORM, name, nid); + printf(cBLUE "Digest test for %s (nid %d)" cNORM "\n", name, nid); /* produce base digest */ EVP_MD_CTX *ctx, *save; @@ -267,8 +267,8 @@ int main(int argc, char **argv) ENGINE_free(eng); if (ret) - printf(cDRED "= Some tests FAILED!\n" cNORM); + printf(cDRED "= Some tests FAILED!" cNORM "\n"); else - printf(cDGREEN "= All tests passed!\n" cNORM); + printf(cDGREEN "= All tests passed!" cNORM "\n"); return ret; }