Date: Fri, 31 Aug 2007 06:44:01 GMT From: Zhouyi ZHOU <zhouzhouyi@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 125875 for review Message-ID: <200708310644.l7V6i1E9071051@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125875 Change 125875 by zhouzhouyi@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708310644.l7V6i1E9071051>