Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1754121992, "reponame":"openssl", "desc":"OpenSSL", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl", "f":3, "items": [ {"schema":"libjg2-1", "cid":"131588b710b2a19c9ee03f36ab994e24", "commit": {"type":"commit", "time": 1492002051, "time_ofs": 120, "oid_tree": { "oid": "b90e86101f437ed47a945268df8fb32bdc0d2c7b", "alias": []}, "oid":{ "oid": "a743b817d28ced8c8a4f2250ae9cbec39af937aa", "alias": []}, "msg": "test/testutil.c: Flush stdout when running tests", "sig_commit": { "git_time": { "time": 1492002051, "offset": 120 }, "name": "Richard Levitte", "email": "levitte@openssl.org", "md5": "b737120f0642a6a5c30c6291e6170c77" }, "sig_author": { "git_time": { "time": 1491980134, "offset": 120 }, "name": "Richard Levitte", "email": "levitte@openssl.org", "md5": "b737120f0642a6a5c30c6291e6170c77" }}, "body": "test/testutil.c: Flush stdout when running tests\n\nBecause stdout is usually buffered and stderr isn't, error output\nmight get printed in one bunch and all the lines saying which test\nfailed all in one bunch, making it difficult to see exactly what error\noutput belongs to what test. Flushing stdout makes sure the runner\noutput is displayed together with the corresponding error output.\n\nReviewed-by: Rich Salz \u003crsalz@openssl.org\u003e\n(Merged from https://github.com/openssl/openssl/pull/3198)" , "diff": "diff --git a/test/testutil.c b/test/testutil.c\nindex 867be17..3d2824c 100644\n--- a/test/testutil.c\n+++ b/test/testutil.c\n@@ -114,6 +114,7 @@ int run_tests(const char *test_prog_name)\n \n printf(\u0022%s: %d test case%s\u005cn\u0022, test_prog_name, num_test_cases,\n num_test_cases \u003d\u003d 1 ? \u0022\u0022 : \u0022s\u0022);\n+ fflush(stdout);\n \n for (i \u003d 0; i !\u003d num_tests; ++i) {\n if (all_tests[i].num \u003d\u003d -1) {\n@@ -122,6 +123,7 @@ int run_tests(const char *test_prog_name)\n if (!ret) {\n printf(\u0022** %s failed **\u005cn--------\u005cn\u0022,\n all_tests[i].test_case_name);\n+ fflush(stdout);\n ++num_failed;\n }\n finalize(ret);\n@@ -132,6 +134,7 @@ int run_tests(const char *test_prog_name)\n if (!ret) {\n printf(\u0022** %s failed test %d\u005cn--------\u005cn\u0022,\n all_tests[i].test_case_name, j);\n+ fflush(stdout);\n ++num_failed;\n }\n finalize(ret);\n@@ -142,9 +145,11 @@ int run_tests(const char *test_prog_name)\n if (num_failed !\u003d 0) {\n printf(\u0022%s: %d test%s failed (out of %d)\u005cn\u0022, test_prog_name,\n num_failed, num_failed !\u003d 1 ? \u0022s\u0022 : \u0022\u0022, num_test_cases);\n+ fflush(stdout);\n return EXIT_FAILURE;\n }\n printf(\u0022 All tests passed.\u005cn\u0022);\n+ fflush(stdout);\n return EXIT_SUCCESS;\n }\n \n","s":{"c":1754121992,"u": 27828}} ],"g": 29164,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}