diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-03-26 04:01:57 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-03-26 04:01:57 +0000 |
commit | 1ce317f9c1ede97d567c974ab06415ea9a30ff37 (patch) | |
tree | 4cc4d5ae97c922ddca1d8814b23ec31d3c5c643a /test/profile/instrprof-write-file-only.c | |
parent | 3354f0f887ee2f7d72de64f6a98f0070675b78a5 (diff) |
[libprofile] Adjust dummy condition to be more forgiving.
On PS4, we have to fake environment variables by passing extra command
line arguments, so the dummy test `argc > 1` was failing.
The condition is just a dummy condition that the compiler can't fold
away, so the number is arbitrary as long as the condition is false.
Increase the number it compares against.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/instrprof-write-file-only.c')
-rw-r--r-- | test/profile/instrprof-write-file-only.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/profile/instrprof-write-file-only.c b/test/profile/instrprof-write-file-only.c index 4abbdea7c..f505cf64a 100644 --- a/test/profile/instrprof-write-file-only.c +++ b/test/profile/instrprof-write-file-only.c @@ -11,7 +11,7 @@ int foo(int); int main(int argc, const char *argv[]) { // CHECK-LABEL: define {{.*}} @main( // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof ![[PD1:[0-9]+]] - if (argc > 1) + if (argc > 42) return 1; // Since the runtime has been suppressed, initialize the file name, as the |