Author: Stan Eisenstat
Subject: Re: [Cs323] t08
Date: Tuesday, 15 Sep 2020, 15:00:25
> Message Posted By: Anonymous
>
> What is the significance of the trailing numbers in test case 8? I ask
> because in t08, I get
>
> ----
> 1
> ----
> 2
>
> instead of (the staff sol)
>
> ----
> 0
> ----
> 1
The last two calls of fiend in Test #08 count the
number of lines written to stdout for the commands
% ./fiend $ROOT/delta/kilo -newer $ROOT/delta/lima -print
and
% ./fiend $ROOT/delta/lima -newer $ROOT/delta/kilo -print
where $ROOT is /c/cs323/Hwk1/Tests/Root/alpha. The
files kilo and limawere created in that order within the
same second:
% ls --full-time T/Root/alpha/delta/[kl]*
-rw-r--r-- 1 sce cs323ta 0 2020-09-01 09:15:16.743082000 -0400 kilo
-rw-r--r-- 1 sce cs323ta 0 2020-09-01 09:15:16.746118000 -0400 lima
Thus the number of lines written should be 0 (since kilo
is not newer than lima) and 1 (since lima is newer than
kilo).
Try running Tests/t08x, which will print what your fiend
wrote if the number of lines is incorrect.
--Stan-
PREV
INDEX
NEXT