SSIA
diff -up saftest/AIS-msg-B.01.01/include/saMsg.h.orig saftest/AIS-msg-B.01.01/include/saMsg.h
--- saftest/AIS-msg-B.01.01/include/saMsg.h.orig 2005-12-08 02:22:44.000000000 +0100
+++ saftest/AIS-msg-B.01.01/include/saMsg.h 2009-05-11 13:47:59.000000000 +0200
@@ -43,7 +43,7 @@ typedef enum {
} SaMsgQueueSendingStateT;
typedef struct {
- SaUint32T queueSize;
+ SaSizeT queueSize;
SaSizeT queueUsed;
SaUint32T numberOfMessages;
} SaMsgQueueUsageT;
diff -up saftest/AIS-msg-B.01.01/src/queuegroup/saMsgQueueGroupCreate/14.c.orig saftest/AIS-msg-B.01.01/src/queuegroup/saMsgQueueGroupCreate/14.c
--- saftest/AIS-msg-B.01.01/src/queuegroup/saMsgQueueGroupCreate/14.c 2005-12-09 10:23:53.000000000 +0100
+++ /dev/null 2009-05-11 15:09:57.000000000 +0200
@@ -1,44 +0,0 @@
-/*
- * Copyright (c) 2005, Intel Corporation
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place - Suite 330, Boston, MA 02111-1307 USA.
- *
- * Author(s):
- * Bao, Qingfeng <[email protected]>
- *
- * Spec: AIS-B.01.01
- * Function: saMsgQueueGroupCreate
- * Description:
- * Test if saMsgQueueGroupCreate can return SA_AIS_ERR_NOT_SUPPORTED.
- * Return = SA_AIS_ERR_NOT_SUPPORTED
- * Same with 3-2
- * Line: P43-13:P43-15
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include "saMsg.h"
-#include "saf_test.h"
-
-int main(int argc, char *argv[])
-{
- char same_case[]="./3-2.test";
-
- execl(same_case, NULL);
- printf(" Can't find case %s\n", same_case);
- return SAF_TEST_UNKNOWN;
-}
-
-
diff -up saftest/AIS-msg-B.01.01/src/queue/saMsgQueueOpenAsync/29.c.orig ./saftest/AIS-msg-B.01.01/src/queue/saMsgQueueOpenAsync/29.c
--- saftest/AIS-msg-B.01.01/src/queue/saMsgQueueOpenAsync/29.c.orig 2005-12-08 02:56:33.000000000 +0100
+++ saftest/AIS-msg-B.01.01/src/queue/saMsgQueueOpenAsync/29.c 2009-05-07 15:09:54.000000000 +0200
@@ -133,7 +133,7 @@ int main(int argc, char *argv[])
* Taken care of in the library
*/
if (msgError == expectedReturn) {
- goto final_1;
+ goto final_wait;
}
/*
@@ -154,7 +154,7 @@ int main(int argc, char *argv[])
if ((selectRet == -1) || (selectRet == 0)){
printf(" select error!\n");
ret = SAF_TEST_UNRESOLVED;
- goto final_1;
+ goto final_wait;
}
msgError = saMsgDispatch(msgHandle, dispatchFlag);
@@ -163,7 +163,7 @@ int main(int argc, char *argv[])
printf(" saMsgDispatch, Return value: %s,should be"
" SA_AIS_OK\n",get_error_string(msgError));
ret = SAF_TEST_UNRESOLVED;
- goto final_1;
+ goto final_wait;
}
if (global_msgError != expectedReturn){
@@ -172,7 +172,7 @@ int main(int argc, char *argv[])
get_error_string(global_msgError),
get_error_string(expectedReturn));
ret = SAF_TEST_FAIL;
- goto final_1;
+ goto final_wait;
}
kill(pid, SIGUSR1);
@@ -186,6 +186,9 @@ int main(int argc, char *argv[])
if(ret == SAF_TEST_PASS)
ret = WEXITSTATUS(status);
+ goto final_1;
+final_wait:
+ kill(pid, SIGUSR1);
final_1 :
saMsgFinalize(msgHandle);
return ret;
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais