Date: Thu, 29 Jan 2009 15:08:16 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 156864 for review Message-ID: <200901291508.n0TF8Ghk085677@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=156864 Change 156864 by rwatson@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901291508.n0TF8Ghk085677>