utest: fix the dereference of null pointer 66/165066/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 26 Dec 2017 00:45:27 +0000 (09:45 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 26 Dec 2017 00:45:27 +0000 (09:45 +0900)
Change-Id: I4e3fca3eca89c03a6aa886cc657d90b17dc3b0b3

utests/src/ut_tdm_client.cpp

index 67db93a..a793bc7 100644 (file)
@@ -755,6 +755,7 @@ TEST_F(TDMClientTestClientOutput, TdmClientOutputAddChangeHandlerSuccessful)
 
        /* force a requests flush */
        wl_dsp = wl_display_connect("tdm-socket");
+       ASSERT_TRUE(nullptr != wl_dsp);
        wl_display_flush(wl_dsp);
        wl_display_roundtrip(wl_dsp);
        wl_display_disconnect(wl_dsp);