--- src/log/apitest/tet_saLogStreamOpen_2.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
diff --git a/src/log/apitest/tet_saLogStreamOpen_2.c b/src/log/apitest/tet_saLogStreamOpen_2.c index 6992392..61a9ed0 100644 --- a/src/log/apitest/tet_saLogStreamOpen_2.c +++ b/src/log/apitest/tet_saLogStreamOpen_2.c @@ -492,6 +492,19 @@ void saLogStreamOpen_2_23(void) test_validate(rc, SA_AIS_ERR_INVALID_PARAM); } + +/* Object to test: saLogStreamOpen_2() API: + * Test: Set inparameter log handle to 12345,logStreamName to NULL pointer, + * logFileCreateAttributes to NULL pointer and logStreamOpenFlags to ZERO(0) + * Result: Shall fail with return code SA_AIS_ERR_INVALID_PARAM + */ +void saLogStreamOpen_2_53(void) +{ + rc = saLogStreamOpen_2(12345, NULL, NULL, 0, SA_TIME_ONE_SECOND, + &logStreamHandle); + test_validate(rc, SA_AIS_ERR_INVALID_PARAM); +} + /** * Added test cases to verify ticket #1399: * logsv gets stuck in while loop if setting maxFilesRotated = 0. @@ -1196,6 +1209,11 @@ __attribute__((constructor)) static void saLibraryLifeCycle_constructor(void) "Open app stream with unsupported logFullAction"); test_case_add(2, saLogStreamOpen_2_22, "Open non exist app stream with NULL create attrs"); + test_case_add(2, saLogStreamOpen_2_53, + "saLogStreamOpen with invalid handle," + "logStreamName to NULL pointer," + "logFileCreateAttributes to NULL pointer" + " and logStreamOpenFlags to ZERO(0)"); // This test case is no longer valid when Long DN is supported // test_case_add(2, saLogStreamOpen_2_23, "Open with stream name length // == 256"); -- 2.7.4 _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel