Andrzej Kotulski
0f9f44f16e
[backend] Report ignored return value on skip functions
...
Reviewed By: jberdine
Differential Revision: D4009328
fbshipit-source-id: f0ba7c0
8 years ago
Peter O'Hearn
07da8f36d1
don't warn on GuardedBy self reference
...
Reviewed By: sblackshear
Differential Revision: D4015092
fbshipit-source-id: 7a82710
8 years ago
Sam Blackshear
715e521ead
[quandary] making summaries smaller
...
Reviewed By: jberdine
Differential Revision: D3981791
fbshipit-source-id: 8d4c839
8 years ago
Josh Berdine
6697ed781f
[tests] Rerun test without swallowing output on failure
...
Reviewed By: jvillard
Differential Revision: D3992995
fbshipit-source-id: 85d2586
8 years ago
Josh Berdine
ac0084019c
[tests] Use $(MAKE) for recursive invocations
...
Reviewed By: jvillard
Differential Revision: D3992994
fbshipit-source-id: 6c07998
8 years ago
Josh Berdine
d8336ea906
[backend] Keep common constraints in pure join
...
Summary:
This changes the algorithm for pure join to keep the constraints that,
after normalization, occur in both arguments. Previously pure join
would normalize, filter, and then union the constraints of the
arguments.
Reviewed By: sblackshear
Differential Revision: D3970394
fbshipit-source-id: 3dc1672
8 years ago
Josh Berdine
30541ec329
[tests] Add test for suboptimal join of attributes
...
Summary:
Add a test case for a problem peterogithub uncovered with join of
attributes. The expected result is currently incorrect, to be fixed
later.
Reviewed By: sblackshear
Differential Revision: D3970363
fbshipit-source-id: 077705d
8 years ago
Sam Blackshear
4a35862aa8
[quandary] dont add passthroughs from callee to caller
...
Summary:
We were previously leaking the passthroughs of the callee into the caller.
We definitely don't want to do this since it could make the summaries higher up in the call stack explode.
If we need to know the passthroughs of a callee, we can always read them from the callee's summary.
Reviewed By: jeremydubreil
Differential Revision: D3972679
fbshipit-source-id: 5b5903f
8 years ago
Sam Blackshear
5e2e7b88aa
[quandary] allow trace-specific rules for handling unknown code
...
Reviewed By: jeremydubreil
Differential Revision: D3962285
fbshipit-source-id: b14f3d2
8 years ago
Jeremy Dubreil
e38e16c948
[infer][java] Remove the deprecated genrule from the BUCK files
...
Reviewed By: jvillard
Differential Revision: D3929506
fbshipit-source-id: a01301c
8 years ago
Jeremy Dubreil
2e2e9c89d6
[infer][java] Removing the models for com.squareup.okhttp.internal.StrictLineReader
...
Reviewed By: dulmarod
Differential Revision: D3929501
fbshipit-source-id: 450f5bd
8 years ago
Jeremy Dubreil
168c613ac9
[infer][java] Separate the builtins from the other models for a better modularity
...
Summary: The Infer builtins can be used in the e2e tests, but those tests should not depend on the Infer models to avoid cyclic dependencies. This diff separates the models and the Infer builtins in two directories so that the test can depend on the builtins without depending on the models
Reviewed By: sblackshear
Differential Revision: D3929478
fbshipit-source-id: 7d0ab79
8 years ago
Sam Blackshear
df8a4f6481
[quandary] tests for divergence
...
Reviewed By: dkgi
Differential Revision: D3871703
fbshipit-source-id: f11f21d
8 years ago
Sam Blackshear
af9f34bb60
[quandary] checking for flows from Intents parsed via Uris -> startActivity (and similar)
...
Reviewed By: mburman
Differential Revision: D3905877
fbshipit-source-id: 03fe2f6
8 years ago
Cristiano Calcagno
717b61192e
[tests] Convert java harness and crashcontext tests to new direct format.
...
Summary:
Convert the last remaining tests to the new direct format: java harness and crashcontext.
Remove what is left of the old testing infrastructure.
Reviewed By: sblackshear
Differential Revision: D3886355
fbshipit-source-id: 5117868
8 years ago
Sam Blackshear
fbfece20af
[quandary] using exceptional procCFG to explore exceptional control-flow
...
Reviewed By: dkgi
Differential Revision: D3871621
fbshipit-source-id: e76a274
8 years ago
Sam Blackshear
4b9899d6b2
[quandary] handling globals in function summaries
...
Reviewed By: jeremydubreil
Differential Revision: D3866616
fbshipit-source-id: 1b77bca
8 years ago
Sam Blackshear
b1039f51f8
[quandary] add summaries for footprint traces associated with locals
...
Differential Revision: D3883275
fbshipit-source-id: 651116e
8 years ago
Sam Blackshear
ae759ee21f
[quandary] fixing crashes when running on recursive code
...
Reviewed By: cristianoc
Differential Revision: D3888004
fbshipit-source-id: d432496
8 years ago
Sam Blackshear
31e6849ec0
[quandary] using summaries part 2: the relational cases
...
Differential Revision: D3861751
fbshipit-source-id: d7858e6
8 years ago
Sam Blackshear
e4beca3779
[quandary] using summaries part 1: return
...
Reviewed By: jeremydubreil
Differential Revision: D3857310
fbshipit-source-id: 29c5994
8 years ago
Sam Blackshear
cf8c957483
[quandary] use preanalysis for abstract GC
...
Reviewed By: jeremydubreil
Differential Revision: D3866919
fbshipit-source-id: 87fb380
8 years ago
Sam Blackshear
27cfb141da
richer sink specifications
...
Reviewed By: jeremydubreil
Differential Revision: D3831688
fbshipit-source-id: 199f1a5
8 years ago
Sam Blackshear
bcacd95176
tests for arrays
...
Reviewed By: jeremydubreil
Differential Revision: D3826552
fbshipit-source-id: 3b98b76
8 years ago
Sam Blackshear
87248009b7
fixing issue where crashcontext breaks without -o
...
Reviewed By: lazaroclapp
Differential Revision: D3823554
fbshipit-source-id: 8c0b329
8 years ago
Josh Berdine
f3cdf87181
Sort test results by file then line
...
Summary:
For tests that have reports of the form `<file>:<line>*`, sort first by
file, then by line numerically.
Reviewed By: sblackshear
Differential Revision: D3828044
fbshipit-source-id: d10cffe
8 years ago
Sam Blackshear
1e4b4df427
fixing handling of aliasing for frontend tmp vars
...
Reviewed By: cristianoc
Differential Revision: D3824558
fbshipit-source-id: 624df00
8 years ago
Sam Blackshear
6ca990be8c
adding tests for manipulating fields
...
Reviewed By: cristianoc
Differential Revision: D3824276
fbshipit-source-id: c412f17
8 years ago
Sam Blackshear
f2487513c5
adding tests for basic var stuff, casts
...
Reviewed By: jberdine
Differential Revision: D3811191
fbshipit-source-id: 9d967f2
8 years ago
Sam Blackshear
3ff6622c9c
setup e2e test skeleton
...
Reviewed By: cristianoc
Differential Revision: D3806745
fbshipit-source-id: c73e5cb
8 years ago
Cristiano Calcagno
257f4976f0
Convert java tracing tests to new direct format.
...
Reviewed By: jeremydubreil
Differential Revision: D3791189
fbshipit-source-id: ce0b7d6
8 years ago
Cristiano Calcagno
674f30de2c
Convert java infer tests to the new direct format
...
Reviewed By: sblackshear
Differential Revision: D3784844
fbshipit-source-id: 44c021d
8 years ago
Cristiano Calcagno
2cb595b8c9
Convert Eradicate and Checkers tests to direct format.
...
Summary:
This diff converts the Eradicate and Checkers tests to the new direct test format, which does not rely on buck or junit.
A self-contained Makefile is used to compile and analyze the test files, including all the dependencies, and a special option in InferPrint is used to produce a file of expected results `issues.exp`, which is checked into the repository.
Having an explicit Makefile makes it easy to edit and compile one set of test files in isolation, to investigate test failures, do debugging, etc.
A bunch of boilerplate code is removed. For example, the single file of expected results `issues.exp` replaces the 1.5K LOC in `endtoend/java/eradicate`.
Reviewed By: jvillard
Differential Revision: D3764632
fbshipit-source-id: 6c68ab8
8 years ago
Sam Blackshear
c5088f44a7
adding tests for context leaks via weak reference
...
Reviewed By: lazaroclapp
Differential Revision: D3760191
fbshipit-source-id: fd9ed1d
8 years ago
Lázaro Clapp Jiménez Labora
85add041d4
CI Tests for crashcontext handling of native methods
...
Reviewed By: sblackshear
Differential Revision: D3644266
fbshipit-source-id: 74e623c
8 years ago
Lázaro Clapp Jiménez Labora
5296688c1f
Match classname for stackframes in crashcontext checker.
...
Reviewed By: sblackshear
Differential Revision: D3643135
fbshipit-source-id: bb38b1b
8 years ago
Sam Blackshear
4490d9b033
fix recognition of inner class this guarded-by strings
...
Reviewed By: peterogithub
Differential Revision: D3620955
fbshipit-source-id: 374d078
8 years ago
Lázaro Clapp Jiménez Labora
9a79e74380
Crashbot results stitching and end-to-end testing.
...
Reviewed By: sblackshear
Differential Revision: D3619339
fbshipit-source-id: 46f3cc1
8 years ago
Sam Blackshear
b500a5c4b5
don't warn in cases where GuardedBy string is clearly unrecognizable
...
Reviewed By: peterogithub
Differential Revision: D3615388
fbshipit-source-id: 8deb7af
8 years ago
Lázaro Clapp Jiménez Labora
76764c148a
Output the callee sumaries of -a crashcontext to per-method files.
...
Reviewed By: sblackshear
Differential Revision: D3612488
fbshipit-source-id: a068803
8 years ago
Lázaro Clapp Jiménez Labora
6469a6c37b
Implement '-a crashcontext' and '-st trace' options to invoke BoundedCallTree.ml from the command line.
...
Reviewed By: sblackshear
Differential Revision: D3606446
fbshipit-source-id: 9ac92fa
8 years ago
Sam Blackshear
d6149c7741
switching to by-ref semantics
...
Reviewed By: peterogithub
Differential Revision: D3567911
fbshipit-source-id: 8852485
8 years ago
Lázaro Clapp Jiménez Labora
95a12d9706
model String.equals(...) as '=='
...
Reviewed By: sblackshear
Differential Revision: D3468427
fbshipit-source-id: 852ef5f
9 years ago
Peter O'Hearn
1edb492b70
One step closer to shipping initial GUARDEDBY
...
Reviewed By: jvillard
Differential Revision: D3469320
fbshipit-source-id: b8491a7
9 years ago
Sam Blackshear
9d95a3a199
don't warn if procedure is marked VisibleForTesting
...
Reviewed By: jvillard
Differential Revision: D3467885
fbshipit-source-id: 80f5f6b
9 years ago
Sam Blackshear
03df3a0c47
supporting guarding on outer-class this in inner class
...
Reviewed By: peterogithub
Differential Revision: D3466342
fbshipit-source-id: ba4f86f
9 years ago
Sam Blackshear
7ae14d0bdf
don't report on compiler-generated access$ methods
...
Reviewed By: peterogithub
Differential Revision: D3460177
fbshipit-source-id: 3a1a782
9 years ago
Sam Blackshear
df257da918
supporting @GuardedBy(MyClass.class) idiom
...
Reviewed By: peterogithub
Differential Revision: D3459531
fbshipit-source-id: 6e47c51
9 years ago
Sam Blackshear
6304e30f5a
don't warn on read-write locks
...
Reviewed By: peterogithub
Differential Revision: D3443015
fbshipit-source-id: e843d13
9 years ago
Sam Blackshear
b940c4dfac
warning on guarded-by writes
...
Differential Revision: D3390055
fbshipit-source-id: 1c68fcd
9 years ago