disable flaky generic model test

Summary: The flakiness is exercised by upgrading the OCaml compiler to 4.04.0.

Reviewed By: jberdine

Differential Revision: D4859904

fbshipit-source-id: 0dd7ff6
master
Jules Villard 8 years ago committed by Facebook Github Bot
parent 3096f02356
commit 652cf81dab

@ -15,11 +15,17 @@
"generic_model.cpp". If generic model is truly generic, then infer will pick
up specs for those and use them
*/
int genericModelNPE() {
GenericModelClass<int> x;
auto ptr = x.get();
return *ptr;
}
/* FIXME(t17253769): flaky because OnDemand doesn't know that
* `genericModelFunction<int>()` and `genericModelFunction<long long>()` are
* meant to be the same function. These two procedures have the same specs
* filename, so depending on which gets analyzed first the spec may already be
* there or not, but if it's the latter then OnDemand will not know to schedule
* the analysis of `genericModelFunction<long long>()` */
// int genericModelNPE() {
// GenericModelClass<int> x;
// auto ptr = x.get();
// return *ptr;
// }
int nonGenericModelNoNPE() {
NonGenericModelClass<int> x;
@ -27,11 +33,13 @@ int nonGenericModelNoNPE() {
return *ptr;
}
int genericModelFunctionNPE() {
auto ptr = genericModelFunction<int>();
return *ptr;
}
int nonGenericModelFunctionNPE() {
/* FIXME(t17253769) commented out for flakiness (see above) */
// int genericModelFunctionNPE() {
// auto ptr = genericModelFunction<int>();
// return *ptr;
// }
int nonGenericModelFunctionNoNPE() {
auto ptr = nonGenericModelFunction<int>(); // this will be skip function
return *ptr;
}

@ -7,8 +7,6 @@ codetoanalyze/cpp/errors/c_tests/c_bugs.cpp, malloc_memory_leak_is_reported, 0,
codetoanalyze/cpp/errors/c_tests/c_bugs.cpp, memcpy_spec_is_found, 3, NULL_DEREFERENCE, [start of procedure memcpy_spec_is_found()]
codetoanalyze/cpp/errors/c_tests/c_bugs.cpp, resource_leak_is_reported, 0, RESOURCE_LEAK, [start of procedure resource_leak_is_reported()]
codetoanalyze/cpp/errors/c_tests/c_bugs.cpp, resource_leak_is_reported, 0, RETURN_VALUE_IGNORED, [start of procedure resource_leak_is_reported()]
codetoanalyze/cpp/errors/generic_models/generic_model_test.cpp, genericModelFunctionNPE, 2, NULL_DEREFERENCE, [start of procedure genericModelFunctionNPE(),start of procedure genericModelFunction<long_long>(),return from a call to genericModelFunction<long_long>]
codetoanalyze/cpp/errors/generic_models/generic_model_test.cpp, genericModelNPE, 3, NULL_DEREFERENCE, [start of procedure genericModelNPE(),start of procedure GenericModelClass,return from a call to GenericModelClass<int>_GenericModelClass,start of procedure get,return from a call to GenericModelClass<long_long>_get]
codetoanalyze/cpp/errors/include_header/header.h, header::A_div0, 0, DIVIDE_BY_ZERO, [start of procedure div0]
codetoanalyze/cpp/errors/include_header/header.h, header::div0_fun, 0, DIVIDE_BY_ZERO, [start of procedure header::div0_fun()]
codetoanalyze/cpp/errors/include_header/header2.h, header2::B<header2::A>_div0, 0, DIVIDE_BY_ZERO, [start of procedure div0]

Loading…
Cancel
Save