Added exception handling for unsupported features in HAL TC
[platform/core/connectivity/net-config.git] / haltests / haltests.h
index 7c56f1d..495602e 100755 (executable)
@@ -53,6 +53,13 @@ bool g_bFeatureP2P;
                g_main_loop_quit(g_pMainLoop);\
 }
 
+#define SKIP_NOT_SUPPORTED(bFeature) {\
+       if (!bFeature) {\
+               printf("Feature is not support\n");\
+               return;\
+       } \
+}
+
 #ifdef __cplusplus
 }
 #endif