Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test cases failed on Linux Mint sarah #228

Open
vishnuu opened this issue Aug 29, 2016 · 0 comments
Open

Test cases failed on Linux Mint sarah #228

vishnuu opened this issue Aug 29, 2016 · 0 comments

Comments

@vishnuu
Copy link

vishnuu commented Aug 29, 2016

Hello all,

I am new to this cpprestsdk.

I followed the instructions as per https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Linux and I have g++, libboost, libssl installed.

when i made the test,
cd Binaries ./test_runner *_test.so

Many of them passed but some of them also failed.

/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:56: error: Failure in outside_cnn_dot_com: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:61: error: Failure in outside_cnn_dot_com: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
Test case outside_tests:outside_cnn_dot_com FAILED
Starting test case outside_tests:outside_google_dot_com...
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:73: error: Failure in outside_google_dot_com: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:73: error: Failure in outside_google_dot_com: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
Test case outside_tests:outside_google_dot_com FAILED
Starting test case outside_tests:multiple_https_requests...
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302
FAILED
Test case outside_tests:multiple_https_requests FAILED
Starting test case outside_tests:reading_google_stream...
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:107: error: Failure in reading_google_stream: CHECK_EQUAL(strcmp((const char *) chars, "<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage\""), 0) where strcmp((const char *) chars, "<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage\"")=39 and 0=0
FAILED
Starting test case outside_tests:server_hostname_mismatch...
/home/vishnu/casablanca/Release/tests/functional/http/client/outside_tests.cpp:149: error: Failure in server_hostname_mismatch: Expected exception: "http_exception" not thrown FAILED
Test case outside_tests:server_hostname_mismatch FAILED
Starting test case authentication_tests:sni_with_older_server_test...
/home/vishnu/casablanca/Release/tests/functional/websockets/client/authentication_tests.cpp:170: error: Failure in sni_with_older_server_test: Unhandled exception: set_fail_handler: 8: TLS handshake failed FAILED
Test case authentication_tests:sni_with_older_server_test FAILED
Starting test case authentication_tests:disable_sni...
Test case authentication_tests:disable_sni PASSED
Starting test case authentication_tests:sni_explicit_hostname...
/home/vishnu/casablanca/Release/tests/functional/websockets/client/authentication_tests.cpp:202: error: Failure in sni_explicit_hostname: Unhandled exception: set_fail_handler: 8: TLS handshake failed FAILED
Test case authentication_tests:sni_explicit_hostname FAILED
Starting test case authentication_tests:self_signed_cert...
Test case authentication_tests:self_signed_cert PASSED
Starting test case authentication_tests:hostname_mismatch...
/home/vishnu/casablanca/Release/tests/functional/websockets/client/authentication_tests.cpp:228: error: Failure in hostname_mismatch: CHECK_EQUAL("TLS handshake failed", e.error_code().message()) where "TLS handshake failed"=TLS handshake failed and e.error_code().message()=Invalid HTTP status.
FAILED
Test case authentication_tests:hostname_mismatch FAILED

`**** outside_tests:outside_cnn_dot_com FAILED ****

**** outside_tests:outside_google_dot_com FAILED ****

**** outside_tests:multiple_https_requests FAILED ****

**** outside_tests:reading_google_stream FAILED ****

**** outside_tests:server_hostname_mismatch FAILED ****

**** authentication_tests:sni_with_older_server_test FAILED ****

**** authentication_tests:sni_explicit_hostname FAILED ****

**** authentication_tests:hostname_mismatch FAILED ****

Finished running all 778 tests.
Took 31419.3ms
`

Any guidelines ? how can i fix this?. Any suggestions would be very helpful for me.

Thanks and regards,
Vishnu

@vishnuu vishnuu changed the title Test cases failed Linux Mint sarah Test cases failed on Linux Mint sarah Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant