PERFORCE change 156864 for review
Robert Watson
rwatson at FreeBSD.org
Thu Jan 29 07:08:21 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=156864
Change 156864 by rwatson at rwatson_freebsd_capabilities on 2009/01/29 15:07:43
Remove extra printfs in process descriptor regression test since
it's hard to see the proper output
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/tools/regression/procdesc/procdesc_test.c#5 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/tools/regression/procdesc/procdesc_test.c#5 (text+ko) ====
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/capabilities/src/tools/regression/procdesc/procdesc_test.c#4 $
+ * $P4: //depot/projects/trustedbsd/capabilities/src/tools/regression/procdesc/procdesc_test.c#5 $
*/
#include <sys/types.h>
@@ -79,7 +79,6 @@
err(-1, "fstat");
if (sb.st_mode != (S_IFREG | S_IRWXU))
errx(-1, "stat mode 0%05o", sb.st_mode);
- printf("before sleep: pid %d mode 0%05o\n", pid, sb.st_mode);
sleep(10);
if (pdgetpid(fd, &pid) < 0)
err(-1, "pdgetpid");
@@ -90,7 +89,6 @@
err(-1, "fstat");
if (sb.st_mode != S_IFREG)
errx(-1, "stat mode 0%05o", sb.st_mode);
- printf("after sleep: pid %d mode %05o\n", pid, sb.st_mode);
close(fd);
}
@@ -112,7 +110,6 @@
err(-1, "fstat");
if (sb.st_mode != (S_IFREG | S_IRWXU))
errx(-1, "stat mode 0%05o", sb.st_mode);
- printf("before sleep: pid %d mode %05o\n", pid, sb.st_mode);
sleep(2);
if (pdgetpid(fd, &pid) < 0)
err(-1, "pdgetpid");
@@ -123,7 +120,6 @@
err(-1, "fstat");
if (sb.st_mode != (S_IFREG | S_IRWXU))
errx(-1, "stat mode 0%05o", sb.st_mode);
- printf("after sleep: pid %d mode %05o\n", pid, sb.st_mode);
close(fd);
}
@@ -145,7 +141,6 @@
err(-1, "fstat");
if (sb.st_mode != (S_IFREG | S_IRWXU))
errx(-1, "stat mode 0%05o", sb.st_mode);
- printf("before sleep: pid %d mode %05o\n", pid, sb.st_mode);
sleep(2);
if (pdgetpid(fd, &pid) < 0)
err(-1, "pdgetpid");
@@ -156,7 +151,6 @@
err(-1, "fstat");
if (sb.st_mode != (S_IFREG | S_IRWXU))
errx(-1, "stat mode 0%05o", sb.st_mode);
- printf("after sleep: pid %d mode %05o\n", pid, sb.st_mode);
if (pdkill(fd, SIGKILL) < 0)
err(-1, "pdkill");
sleep(1);
@@ -169,7 +163,6 @@
err(-1, "fstat");
if (sb.st_mode != S_IFREG)
errx(-1, "stat mode 0%05o", sb.st_mode);
- printf("after kill: pid %d mode %05o\n", pid, sb.st_mode);
close(fd);
}
More information about the p4-projects
mailing list