Warmcat homepage andy@warmcat.com
libwebsockets
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1749356424, "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":"06cc81c39b8aff357d4d1e35808a2836", "commit": {"type":"commit", "time": 1523441058, "time_ofs": 120, "oid_tree": { "oid": "774383795d165cab6675109f9ff1914208be25de", "alias": []}, "oid":{ "oid": "708a6a17592865590344eca541cbfccd472d7b45", "alias": []}, "msg": "OpenSSL::Test: add data_dir()", "sig_commit": { "git_time": { "time": 1523441058, "offset": 120 }, "name": "Richard Levitte", "email": "levitte@openssl.org", "md5": "b737120f0642a6a5c30c6291e6170c77" }, "sig_author": { "git_time": { "time": 1523433299, "offset": 120 }, "name": "Richard Levitte", "email": "levitte@openssl.org", "md5": "b737120f0642a6a5c30c6291e6170c77" }}, "body": "OpenSSL::Test: add data_dir()\n\nFor test recipes that want to use the directory of the data directory\nor a subdirectory thereof, rather than just individual files.\n\nReviewed-by: Andy Polyakov \u003cappro@openssl.org\u003e\n(Merged from https://github.com/openssl/openssl/pull/5928)\n" , "diff": "diff --git a/util/perl/OpenSSL/Test.pm b/util/perl/OpenSSL/Test.pm\nindex f4b1b50..19141e9 100644\n--- a/util/perl/OpenSSL/Test.pm\n+++ b/util/perl/OpenSSL/Test.pm\n@@ -607,6 +607,23 @@ sub srctop_file {\n \n \u003dover 4\n \n+\u003ditem B\u003cdata_dir LIST\u003e\n+\n+LIST is a list of directories that make up a path from the data directory\n+associated with the test (see L\u003c/DESCRIPTION\u003e above).\n+C\u003cdata_dir\u003e returns the resulting directory as a string, adapted to the local\n+operating system.\n+\n+\u003dback\n+\n+\u003dcut\n+\n+sub data_dir {\n+ return __data_dir(@_);\n+}\n+\n+\u003dover 4\n+\n \u003ditem B\u003cdata_file LIST, FILENAME\u003e\n \n LIST is a list of directories that make up a path from the data directory\n@@ -967,6 +984,12 @@ sub __data_file {\n return catfile($directories{SRCDATA},@_,$f);\n }\n \n+sub __data_dir {\n+ BAIL_OUT(\u0022Must run setup() first\u0022) if (! $test_name);\n+\n+ return catdir($directories{SRCDATA},@_);\n+}\n+\n sub __results_file {\n BAIL_OUT(\u0022Must run setup() first\u0022) if (! $test_name);\n \n","s":{"c":1749210053,"u": 41406}} ],"g": 1282,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "7d0a"}