Fix test program not to display successful message on terminated callback
authorCheoleun Moon <chleun.moon@samsung.com>
Thu, 9 Apr 2020 07:39:11 +0000 (16:39 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Thu, 9 Apr 2020 07:39:11 +0000 (16:39 +0900)
packaging/capi-network-wifi-aware.spec
test/wifi-aware-publish-test.c
test/wifi-aware-subscribe-test.c

index 7b544ebd5c983e6ea42fa11b4606d1a7e8709a95..caa32553e00483c2e2a19b50b84cc92e7e1eeec3 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-wifi-aware
 Summary:    An Wi-Fi Aware libraries in Native API
-Version:    0.1.2
+Version:    0.1.3
 Release:    1
 Group:      Network & Connectivity/API
 License:    Apache-2.0
index 0a7e7a014273539998966a2bb7987d86e5e8db12..9ecd626aff129c5df81305c61e7cc3b3255e201a 100644 (file)
@@ -283,8 +283,8 @@ static void __data_path_terminated_cb(wifi_aware_data_path_h data_path,
        if (data_path != NULL) {
                wifi_aware_data_path_unset_terminated_cb(data_path);
                wifi_aware_data_path_destroy(data_path);
+               __test_finish(0);
        }
-       __test_finish(1);
 }
 
 static void __open_cb(wifi_aware_data_path_h data_path, wifi_aware_error_e error, void *user_data)
index 2e834d8b6375fae4c94f981106564c3bd1446794..29a0568d86d55d0dd909a1ee2349ba02757d0bcc 100644 (file)
@@ -306,8 +306,8 @@ static void __data_path_terminated_cb(wifi_aware_data_path_h data_path,
        if (data_path != NULL) {
                wifi_aware_data_path_unset_terminated_cb(data_path);
                wifi_aware_data_path_destroy(data_path);
+               __test_finish(0);
        }
-       __test_finish(1);
 }
 
 static void __open_cb(wifi_aware_data_path_h data_path, wifi_aware_error_e error, void *user_data)