ソースを参照

test_digestauth2: minor improvements

Evgeny Grin (Karlson2k) 3 年 前
コミット
e16789ef4f
1 ファイル変更4 行追加2 行削除
  1. 4 2
      src/testcurl/test_digestauth2.c

+ 4 - 2
src/testcurl/test_digestauth2.c

@@ -799,6 +799,8 @@ ahc_echo (void *cls,
                  check_res);
                  check_res);
         mhdErrorExitDesc ("Impossible returned code");
         mhdErrorExitDesc ("Impossible returned code");
       }
       }
+      fflush (stderr);
+      fflush (stdout);
 
 
       if (MHD_DAUTH_OK == check_res)
       if (MHD_DAUTH_OK == check_res)
       {
       {
@@ -832,7 +834,7 @@ ahc_echo (void *cls,
           mhdErrorExitDesc ("'MHD_queue_auth_required_response3()' failed");
           mhdErrorExitDesc ("'MHD_queue_auth_required_response3()' failed");
       }
       }
       else
       else
-        mhdErrorExitDesc ("Wrong 'check_res' value");
+        externalErrorExitDesc ("Wrong 'check_res' value");
     }
     }
     else
     else
     {
     {
@@ -960,7 +962,7 @@ ahc_echo (void *cls,
                                            MHD_DIGEST_ALG_SHA256 :
                                            MHD_DIGEST_ALG_SHA256 :
                                            MHD_DIGEST_ALG_MD5);
                                            MHD_DIGEST_ALG_MD5);
       if (MHD_YES != res)
       if (MHD_YES != res)
-        mhdErrorExitDesc ("'MHD_queue_auth_fail_response()' failed");
+        mhdErrorExitDesc ("'MHD_queue_auth_fail_response2()' failed");
     }
     }
   }
   }
   else if (1 == test_oldapi)
   else if (1 == test_oldapi)