[compiler-rt] r259004 - [sancov] running sancov test on linux only

Mike Aizatsky via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 16:27:13 PST 2016


Author: aizatsky
Date: Wed Jan 27 18:27:13 2016
New Revision: 259004

URL: http://llvm.org/viewvc/llvm-project?rev=259004&view=rev
Log:
[sancov] running sancov test on linux only

Added:
    compiler-rt/trunk/test/asan/TestCases/Linux/coverage_html_report.cc
      - copied, changed from r259001, compiler-rt/trunk/test/asan/TestCases/Posix/coverage_html_report.cc
Removed:
    compiler-rt/trunk/test/asan/TestCases/Posix/coverage_html_report.cc

Copied: compiler-rt/trunk/test/asan/TestCases/Linux/coverage_html_report.cc (from r259001, compiler-rt/trunk/test/asan/TestCases/Posix/coverage_html_report.cc)
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/coverage_html_report.cc?p2=compiler-rt/trunk/test/asan/TestCases/Linux/coverage_html_report.cc&p1=compiler-rt/trunk/test/asan/TestCases/Posix/coverage_html_report.cc&r1=259001&r2=259004&rev=259004&view=diff
==============================================================================
    (empty)

Removed: compiler-rt/trunk/test/asan/TestCases/Posix/coverage_html_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/coverage_html_report.cc?rev=259003&view=auto
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/coverage_html_report.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/coverage_html_report.cc (removed)
@@ -1,24 +0,0 @@
-// REQUIRES: has_sancovcc
-// RUN: %clangxx_asan -fsanitize-coverage=func %s -o %t
-// RUN: rm -rf %T/coverage_html_report
-// RUN: mkdir -p %T/coverage_html_report
-// RUN: cd %T/coverage_html_report
-// RUN: %env_asan_opts=coverage=1:verbosity=1:html_cov_report=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-main
-// RUN: ls *.html | FileCheck %s --check-prefix=CHECK-ls
-// RUN: rm -r %T/coverage_html_report
-
-#include <stdio.h>
-#include <unistd.h>
-
-void bar() { printf("bar\n"); }
-
-int main(int argc, char **argv) {
-  fprintf(stderr, "PID: %d\n", getpid());
-  bar();
-  return 0;
-}
-
-// CHECK-main: PID: [[PID:[0-9]+]]
-// CHECK-main: [[PID]].sancov: 2 PCs written
-// CHECK-main: html report generated to ./coverage_html_report.cc.tmp.[[PID]].html
-// CHECK-ls: coverage_html_report.cc.tmp.{{[0-9]+}}.html




More information about the llvm-commits mailing list