PERFORCE change 125875 for review
Zhouyi ZHOU
zhouzhouyi at FreeBSD.org
Thu Aug 30 23:44:02 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=125875
Change 125875 by zhouzhouyi at zhouzhouyi_mactest on 2007/08/31 06:43:34
sysv msg checking mechanism
Affected files ...
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/msgtest.c#2 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/shmtest.c#6 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/misc.sh#19 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/sysvmsg/00.t#1 add
Differences ...
==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/msgtest.c#2 (text+ko) ====
@@ -440,12 +440,15 @@
*/
if (msgrcv(msqid, &m, sizeof(m.mtext), MTYPE_1, 0) !=
- strlen(m1_str) + 1)
- err(1, "receiver: msgrcv 1");
+ strlen(m1_str) + 1);
+/* err(1, "receiver: msgrcv 1");*/ /*comment out the receiver error
+ report for parsing the sender error*/
- if (strcmp(m.mtext, m1_str) != 0){
+/* if (strcmp(m.mtext, m1_str) != 0){
err(1, "receiver: message 1 data isn't correct");
}
+*/
+/*comment out the receiver error report for parsing the sender error */
exit(0);
}
==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/shmtest.c#6 (text+ko) ====
@@ -399,6 +399,7 @@
/*
* Reap the child; if it exited successfully, then the test passed!
*/
+/*
if (waitpid(child_pid, &cstatus, 0) != child_pid)
err(1, "waitpid");
@@ -408,7 +409,7 @@
if (WEXITSTATUS(cstatus) != 0)
errx(1, "receiver exited with status %d",
WEXITSTATUS(cstatus));
-
+*/
/*
* If we get here, the child has exited normally, and thus
* we should exit normally too. First, tho, we print out
==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/misc.sh#19 (text+ko) ====
@@ -23,6 +23,7 @@
macping="${maindir}/macping"
shmtest="${maindir}/shmtest"
semtest="${maindir}/semtest"
+msgtest="${maindir}/msgtest"
. ${maindir}/tests/conf
More information about the p4-projects
mailing list