Fix compilation issue on windows 54/57454/4 3.1.3 v3.1.3
authorabhinavdangeti <abhinav@couchbase.com>
Fri, 4 Dec 2015 00:15:47 +0000 (16:15 -0800)
committerabhinav dangeti <abhinav@couchbase.com>
Fri, 4 Dec 2015 00:44:32 +0000 (00:44 +0000)
<http://factory.couchbase.com/job/win_cs_build/ws/couchbase\ep-engine\test
s\ep_testsuite.cc(4958)> : error C2782: 'void checkeqfn(T,T,const char
        ,const char ,const int)' : template parameter 'T' is ambiguous

<http://factory.couchbase.com/job/win_cs_build/ws/couchbase\ep-engine\test
s\ep_testsuite.cc(74)> : see declaration of 'checkeqfn'
could be 'unsigned __int64'
or       'unsigned long'
NMAKE : fatal error U1077:
'C:\PROGRA~2\MICROS~2.0\VC\bin\amd64\cl.exe' :
return code '0x2'

Change-Id: I9a0bf5bd74276ebe9ac6a709302704a2bab06c25
Reviewed-on: http://review.couchbase.org/57454
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: abhinav dangeti <abhinav@couchbase.com>
tests/ep_testsuite.cc

index 2aba386..11d2f94 100644 (file)
@@ -4954,7 +4954,7 @@ static enum test_result test_dcp_close_stream(ENGINE_HANDLE *h,
           "Expected success");
 
     state = get_str_stat(h, h1, "eq_dcpq:unittest:stream_0_state", "dcp");
-    checkeq(static_cast<unsigned long>(0), state.length(),
+    checkeq(0, static_cast<int>(state.length()),
             "Did not expect to find the closed stream");
 
     testHarness.destroy_cookie(cookie);