fixed http_connection test (stopped working with new echo semantics in leopard)

This commit is contained in:
Arvid Norberg 2008-03-21 05:54:01 +00:00
parent 3c9f2f685b
commit c8416cc79e
2 changed files with 10 additions and 5 deletions

View File

@ -6,7 +6,7 @@ bool tests_failure = false;
void report_failure(char const* err, char const* file, int line)
{
std::cerr << file << ":" << line << "\"" << err << "\"\n";
std::cerr << "\033[31m" << file << ":" << line << " \"" << err << "\"\033[0m\n";
tests_failure = true;
}

View File

@ -73,10 +73,15 @@ void start_web_server(int port, bool ssl)
if (ssl)
{
system("echo -e \"AU\\ntest province\\ntest city\\ntest company\\n"
"test department\\ntester\\ntest@test.com\" | "
"openssl req -new -x509 -keyout server.pem -out server.pem "
"-days 365 -nodes");
system("echo . > tmp");
system("echo test province >>tmp");
system("echo test city >> tmp");
system("echo test company >> tmp");
system("echo test department >> tmp");
system("echo tester >> tmp");
system("echo test@test.com >> tmp");
system("openssl req -new -x509 -keyout server.pem -out server.pem "
"-days 365 -nodes <tmp");
}
std::ofstream f("lighty_config");