Closed Hanseltu closed 1 year ago
Can you post your interestingness script in a comment here? If you make the script available to us, we can probably give you a more useful answer.
c-reduce's parallel mode is forced to run each test in a fresh temporary directory, or else different instances would tend to interfere with each other. you simply need to ensure that your interestingness test works when it is in a fresh directory. if you need something to be there (besides the file being reduced) then make sure that you copy it over (or, if it is immutable, refer to its original location using an absolute path)
Understood. Thanks for your suggestions!
Hi,
Thanks for the nice tool. I have used this for a long time to reduce compiler bugs. One issue that I encountered recently is when I reduced the C program for another purpose, the
reduce.sh
can return0
when directly executing./reduce.sh; echo $?
but failed when I executedcreduce --n 1 reduce.sh test.c
.The problem may come from the content in the
reduce.sh
, and the key portions are:I suspected that I can not get the correct return value mainly because the script
run-test.py
is not included in the temp file afterDIR='mktemp -d'
, so creduce can not run it as usual. Is this the reason behind it? How can I add the new scripts (e.g.,run-test.py
) to the temp folder?Thanks, Haoxin