PERFORCE change 126031 for review

Zhouyi ZHOU zhouzhouyi at FreeBSD.org
Tue Sep 4 00:25:46 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=126031

Change 126031 by zhouzhouyi at zhouzhouyi_mactest on 2007/09/04 07:25:22

	Add mmap test cases

Affected files ...

.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/Makefile#10 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/mmaptest.c#1 add
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/semtest.c#3 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/misc.sh#20 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/mmap/00.t#1 add

Differences ...

==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/Makefile#10 (text+ko) ====

@@ -7,7 +7,7 @@
 #CFLAGS+=-DHAS_STAT64
 
 all:	macproc mactest mdconfigopenrdonly fifo_io pipe_io macping shmtest \
-	semtest msgtest
+	semtest msgtest mmaptest
 
 macproc:	macproc.c
 	gcc -Wall ${CFLAGS} macproc.c -o macproc -lutil
@@ -29,9 +29,10 @@
 	gcc ${CFLAGS} -o semtest semtest.c macconf.c mactestparser.tab.c
 msgtest: msgtest.c macconf.c mactestparser.tab.c
 	gcc ${CFLAGS} -o msgtest msgtest.c macconf.c mactestparser.tab.c
+mmaptest: mmaptest.c macconf.c mactestparser.tab.c
+	gcc ${CFLAGS} -o mmaptest mmaptest.c macconf.c mactestparser.tab.c
 
 
-
 clean:
 	rm -f macproc
 	rm -f mactest
@@ -41,4 +42,5 @@
 	rm -f macping
 	rm -f shmtest
 	rm -f semtest
-	rm -f msgtest+	rm -f msgtest
+	rm -f mmaptest
==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/semtest.c#3 (text+ko) ====

@@ -413,6 +413,7 @@
 		if (semctl(sender_semid, 0, IPC_RMID) == -1)
 			warn("semctl IPC_RMID");
 		close(logfd);
+		machookmatch(macconf_file, getpid());
 	}
 }
 

==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/misc.sh#20 (text+ko) ====

@@ -24,6 +24,7 @@
 shmtest="${maindir}/shmtest"
 semtest="${maindir}/semtest"
 msgtest="${maindir}/msgtest"
+mmaptest="${maindir}/mmaptest"
 
 . ${maindir}/tests/conf
 


More information about the p4-projects mailing list