Commit bba21b46 authored by John Selbie's avatar John Selbie

Makefile fix and more messages for unit test

parent 1fb49dbe
......@@ -8,7 +8,7 @@ PROJECT_INTERMEDIATES := usage.txtcode usagelite.txtcode
INCLUDES := $(BOOST_INCLUDE) -I../common -I../stuncore -I../networkutils
LIB_PATH := -L../common -L../stuncore -L../networkutils
LIBS := -lnetworkutils -lstuncore -lcommon -lpthread -lcrypto
LIBS := -lnetworkutils -lstuncore -lcommon -pthread -lcrypto
all: $(PROJECT_TARGET)
......
......@@ -25,10 +25,18 @@
HRESULT CTestRecvFromEx::Run()
{
HRESULT hr1=S_OK, hr2=S_OK;
HRESULT hr = S_OK;
Chk(DoTest(false)); // ipv4
Chk(DoTest(true)); // ipv6
hr1 = DoTest(false); // ipv4
printf("Test result of recvfromex on ipv4. Result: %s\n", SUCCEEDED(hr)?"Pass":"Fail");
hr2 = DoTest(true); // ipv6
printf("Test result of recvfromex on ipv6. Result: %s\n", SUCCEEDED(hr)?"Pass":"Fail");
Chk(hr1);
Chk(hr2);
Cleanup:
return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment