From: David van Moolenbroek Date: Sat, 15 Aug 2009 15:13:57 +0000 (+0000) Subject: fix test14's "clever" (broken) filename generation X-Git-Tag: v3.1.5~199 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=062bb2c1e881066371332096f830457514bbf0c6;p=minix.git fix test14's "clever" (broken) filename generation --- diff --git a/test/test14.c b/test/test14.c index c96c1e24b..aa04dcf78 100644 --- a/test/test14.c +++ b/test/test14.c @@ -29,9 +29,7 @@ int main() chdir("DIR_14"); pid = getpid(); - name[6] = (pid & 037) + 33; - name[7] = ((pid * pid) & 037) + 33; - name[8] = 0; + sprintf(&name[6], "%x", pid); for (i = 0; i < TRIALS; i++) { if ( (fd0 = creat(name, 0777)) < 0) e(1);