This is an archive of the discontinued LLVM Phabricator instance.

Handle two corner cases in creduce-clang-crash.py
ClosedPublic

Authored by rnk on Dec 5 2019, 4:16 PM.

Details

Summary

First, call os.path.normpath on the filename argument. I passed in
./foo-asdf.cpp, and this meant that the script failed to find the
filename, and bad things happened.

Second, call os.path.abspath on binaries. CReduce runs the
interestingness test in a temp dir, so relative paths will not work.

Diff Detail

Event Timeline

rnk created this revision.Dec 5 2019, 4:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 5 2019, 4:16 PM
akhuang accepted this revision.Dec 5 2019, 4:21 PM

lgtm

This revision is now accepted and ready to land.Dec 5 2019, 4:21 PM
This revision was automatically updated to reflect the committed changes.