---
 src/lck/apitest/tet_gla.c       | 9 +++++++++
 src/lck/apitest/tet_gla_conf.c  | 2 ++
 src/lck/apitest/tet_glsv.h      | 2 ++
 src/lck/apitest/tet_glsv_util.c | 5 +++++
 4 files changed, 18 insertions(+)

diff --git a/src/lck/apitest/tet_gla.c b/src/lck/apitest/tet_gla.c
index 64b6b25..0e3ac43 100644
--- a/src/lck/apitest/tet_gla.c
+++ b/src/lck/apitest/tet_gla.c
@@ -765,6 +765,15 @@ final:
        glsv_result(result);
 }
 
+void glsv_it_dispatch_10()
+{
+       int result;
+       result = tet_test_lckDispatch(LCK_DISPATCH_BAD_HANDLE_BAD_FLAGS_T,
+                                     TEST_NONCONFIG_MODE);
+
+       glsv_result(result);
+}
+
 /*********** saLckFinalize Api Tests ************/
 
 void glsv_it_finalize_01()
diff --git a/src/lck/apitest/tet_gla_conf.c b/src/lck/apitest/tet_gla_conf.c
index b122231..064883f 100644
--- a/src/lck/apitest/tet_gla_conf.c
+++ b/src/lck/apitest/tet_gla_conf.c
@@ -363,6 +363,8 @@ struct SafDispatch API_Glsv_Dispatch[] = {
                                                  SA_AIS_OK},
     [LCK_DISPATCH_ERR_TRY_AGAIN_T] = {&gl_gla_env.lck_hdl1, SA_DISPATCH_ONE,
                                      SA_AIS_ERR_TRY_AGAIN},
+    [LCK_DISPATCH_BAD_HANDLE_BAD_FLAGS_T] = 
{&gl_gla_env.inv_params.inv_lck_hdl,
+                                            -1,SA_AIS_ERR_BAD_HANDLE},
 };
 
 int tet_test_lckDispatch(int i, GLSV_CONFIG_FLAG flg)
diff --git a/src/lck/apitest/tet_glsv.h b/src/lck/apitest/tet_glsv.h
index ecce58b..7dc9ef5 100644
--- a/src/lck/apitest/tet_glsv.h
+++ b/src/lck/apitest/tet_glsv.h
@@ -106,6 +106,7 @@ typedef enum {
   LCK_DISPATCH_DISPATCH_ALL_SUCCESS2_T,
   LCK_DISPATCH_DISPATCH_BLOCKING_SUCCESS_T,
   LCK_DISPATCH_ERR_TRY_AGAIN_T,
+  LCK_DISPATCH_BAD_HANDLE_BAD_FLAGS_T,
   LCK_DISPATCH_MAX_T
 } LCK_DISPATCH_TC_TYPE;
 
@@ -429,6 +430,7 @@ void glsv_it_dispatch_06(void);
 void glsv_it_dispatch_07(void);
 void glsv_it_dispatch_08(void);
 void glsv_it_dispatch_09(void);
+void glsv_it_dispatch_10(void);
 void glsv_it_finalize_01(void);
 void glsv_it_finalize_02(void);
 void glsv_it_finalize_03(void);
diff --git a/src/lck/apitest/tet_glsv_util.c b/src/lck/apitest/tet_glsv_util.c
index c0fafd1..217eba9 100644
--- a/src/lck/apitest/tet_glsv_util.c
+++ b/src/lck/apitest/tet_glsv_util.c
@@ -68,6 +68,7 @@ struct tet_testlist glsv_onenode_testlist[] = {
     {glsv_it_dispatch_07, 25},
     {glsv_it_dispatch_08, 26},
     {glsv_it_dispatch_09, 27},
+    {glsv_it_dispatch_10, 162},
 
     {glsv_it_finalize_01, 28},
     {glsv_it_finalize_02, 29},
@@ -270,6 +271,7 @@ struct tet_testlist tet_testlist[] = {{glsv_it_init_01, 1},
                                      {glsv_it_dispatch_07, 25},
                                      {glsv_it_dispatch_08, 26},
                                      {glsv_it_dispatch_09, 27},
+                                     {glsv_it_dispatch_10, 162},
 
                                      {glsv_it_finalize_01, 28},
                                      {glsv_it_finalize_02, 29},
@@ -568,6 +570,9 @@ __attribute__((constructor)) static void 
glsv_constructor(void)
   test_case_add(4,
                 glsv_it_dispatch_09,
                 "saLckDispatch in case of no pending callbacks - 
SA_DISPATCH_ALL");
+  test_case_add(4,
+                glsv_it_dispatch_10,
+                "saLckDispatch with invalid lock handle and invalid dispatch 
flags");
 
   test_suite_add(5, "saLckFinalize Test Suite");
   test_case_add(5,
-- 
2.7.4



_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to