[all-commits] [llvm/llvm-project] 1f822f: Handle two corner cases in creduce-clang-crash.py

Reid Kleckner via All-commits all-commits at lists.llvm.org
Thu Dec 5 16:24:29 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f822f212cde1ad9099cf45af0652a83380de772
      https://github.com/llvm/llvm-project/commit/1f822f212cde1ad9099cf45af0652a83380de772
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-12-05 (Thu, 05 Dec 2019)

  Changed paths:
    M clang/utils/creduce-clang-crash.py

  Log Message:
  -----------
  Handle two corner cases in creduce-clang-crash.py

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.

Reviewers: akhuang

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D71098




More information about the All-commits mailing list