[PATCH] [ASan] Add process basename to log name and error message to simplify analysis of sanitized systems logs.

Alexey Samsonov vonosmas at gmail.com
Thu Apr 30 10:56:30 PDT 2015


REPOSITORY
  rL LLVM

================
Comment at: test/asan/TestCases/verbose-log-path_test.cc:6
@@ +5,3 @@
+// RUN: env ASAN_OPTIONS=log_path=%t.log:log_exe_name=1 not %run %t 2> %t.out
+// RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t.log.verbose-log-path_test.cc*
+
----------------
ygribov wrote:
> samsonov wrote:
> > ... and matching against this executable name here.
> Sorry, not quite clear. What would be the benefit of this?
Otherwise you seem to depend on the fact that %t (temporary string generated by lit) contains the source file name (verbose-log-path_test.cc).

http://reviews.llvm.org/D7333

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list