diff options
author | Xinliang David Li <davidxl@google.com> | 2017-08-15 03:13:01 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2017-08-15 03:13:01 +0000 |
commit | 237a4de6d7bb4234853740591cea82f8d2d603ff (patch) | |
tree | 4a1c461c5bfa8e8c11bc61f3af88bd952c379851 /test | |
parent | 6a52c89fd901ed4e70aa567e99488f380afbbc67 (diff) |
Revert r310857 due to internal test failure
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@310907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/profile/instrprof-path.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/test/profile/instrprof-path.c b/test/profile/instrprof-path.c index ff0586b8d..28ee8ad0a 100644 --- a/test/profile/instrprof-path.c +++ b/test/profile/instrprof-path.c @@ -1,8 +1,6 @@ // RUN: %clang_pgogen -O2 -o %t.0 %s // RUN: %clang_pgogen=%t.d1 -O2 -o %t.1 %s // RUN: %clang_pgogen=%t.d1/%t.d2 -O2 -o %t.2 %s -// RUN: %clang_pgogen=a/b/c/d -O2 -o %t.3 %s -// RUN: %clang_pgogen=/a/b/c/d -O2 -o %t.4 %s // // RUN: %run %t.0 "" // RUN: env LLVM_PROFILE_FILE=%t.d1/default.profraw %run %t.0 %t.d1/ @@ -11,17 +9,6 @@ // RUN: %run %t.2 %t.d1/%t.d2/ // RUN: %run %t.2 %t.d1/%t.d2/ %t.d1/%t.d2/%t.d3/blah.profraw %t.d1/%t.d2/%t.d3/ -// RUN: env GCOV_PREFIX=%t.prefix %run %t.3 %t.prefix/a/b/c/d/ -// RUN: env GCOV_PREFIX=%t.prefix env GCOV_PREFIX_STRIP=1 %run %t.3 %t.prefix/b/c/d/ -// RUN: env GCOV_PREFIX=%t.prefix env GCOV_PREFIX_STRIP=2 %run %t.3 %t.prefix/c/d/ -// RUN: env GCOV_PREFIX=%t.prefix env GCOV_PREFIX_STRIP=3 %run %t.3 %t.prefix/d/ - -// RUN: env GCOV_PREFIX=%t.prefix %run %t.4 %t.prefix/a/b/c/d/ -// RUN: env GCOV_PREFIX=%t.prefix env GCOV_PREFIX_STRIP=1 %run %t.4 %t.prefix/b/c/d/ -// RUN: env GCOV_PREFIX=%t.prefix env GCOV_PREFIX_STRIP=2 %run %t.4 %t.prefix/c/d/ -// RUN: env GCOV_PREFIX=%t.prefix env GCOV_PREFIX_STRIP=3 %run %t.4 %t.prefix/d/ - -#include <stdio.h> #include <string.h> const char *__llvm_profile_get_path_prefix(); @@ -37,11 +24,8 @@ int main(int argc, const char *argv[]) { expected = argv[1]; prefix = __llvm_profile_get_path_prefix(); - if (strcmp(prefix, expected)) { - fprintf(stderr, "Expected = %s\n", expected); - fprintf(stderr, " Actual = %s\n", prefix); + if (strcmp(prefix, expected)) return 1; - } if (argc == 4) { __llvm_profile_set_filename(argv[2]); |