@@ -157,7 +157,6 @@ LT_BEGIN_SUITE(basic_suite)
157157LT_END_SUITE (basic_suite)
158158
159159LT_BEGIN_AUTO_TEST (basic_suite, two_endpoints)
160-
161160 ok_resource* ok = new ok_resource();
162161 ws->register_resource (" OK" , ok);
163162 nok_resource* nok = new nok_resource();
@@ -413,26 +412,21 @@ LT_BEGIN_AUTO_TEST(basic_suite, empty_arg)
413412 curl_easy_cleanup (curl);
414413LT_END_AUTO_TEST (empty_arg)
415414
416- /*
417415LT_BEGIN_AUTO_TEST (basic_suite, no_response)
418416 no_response_resource* resource = new no_response_resource();
419417 ws->register_resource (" base" , resource);
420418 curl_global_init (CURL_GLOBAL_ALL );
421- std::string s;
422- CURL* curl;
423- CURLcode res;
424419
425- curl = curl_easy_init();
420+ CURL * curl = curl_easy_init();
426421 curl_easy_setopt (curl, CURLOPT_URL , " localhost:8080/base" );
427422 curl_easy_setopt (curl, CURLOPT_HTTPGET , 1L );
428- res = curl_easy_perform(curl);
423+ CURLcode res = curl_easy_perform(curl);
429424 LT_ASSERT_EQ (res, 0 );
430425 long http_code = 0 ;
431426 curl_easy_getinfo (curl, CURLINFO_RESPONSE_CODE , &http_code);
432427 LT_ASSERT_EQ (http_code, 500 );
433428 curl_easy_cleanup (curl);
434429LT_END_AUTO_TEST (no_response)
435- */
436430
437431LT_BEGIN_AUTO_TEST_ENV ()
438432 AUTORUN_TESTS ()
0 commit comments