Disabling the NSNotification center error from the backend

Reviewed By: dulmarod

Differential Revision: D3139192

fb-gh-sync-id: d0cd264
fbshipit-source-id: d0cd264
master
Dino Distefano 9 years ago committed by Facebook Github Bot 8
parent f250a103f3
commit 1b21869108

@ -1024,7 +1024,7 @@ let check_observer_is_unsubscribed_deallocation prop e =
match Prop.get_observer_attribute prop e with match Prop.get_observer_attribute prop e with
| Some Sil.Aobserver -> | Some Sil.Aobserver ->
(match pvar_opt with (match pvar_opt with
| Some pvar -> | Some pvar when !Config.nsnotification_center_checker_backend ->
L.d_strln (" ERROR: Object " ^ (Pvar.to_string pvar) ^ L.d_strln (" ERROR: Object " ^ (Pvar.to_string pvar) ^
" is being deallocated while still registered in a notification center"); " is being deallocated while still registered in a notification center");
let desc = Localise.desc_registered_observer_being_deallocated pvar loc in let desc = Localise.desc_registered_observer_being_deallocated pvar loc in

@ -412,3 +412,5 @@ let string_of_language = function
| C_CPP -> "C_CPP" | C_CPP -> "C_CPP"
let show_progress_bar = ref true let show_progress_bar = ref true
let nsnotification_center_checker_backend = ref false

@ -64,10 +64,10 @@ int fooOK2() {
} }
int barError() { int barError() {
ViewController* vc = [[ViewController alloc] init]; // ViewController* vc = [[ViewController alloc] init];
[vc fired]; //[vc fired];
vc = [[ViewController alloc] init]; // vc = [[ViewController alloc] init];
return 0; return 0;
} }

@ -50,7 +50,7 @@ public class RegisteredObserver {
throws InterruptedException, IOException, InferException { throws InterruptedException, IOException, InferException {
InferResults inferResults = InferRunner.runInferObjC(inferCmd); InferResults inferResults = InferRunner.runInferObjC(inferCmd);
String[] methods = { String[] methods = {
"fooError", "barError" //"fooError", "barError"
}; };
assertThat( assertThat(
"Results should contain " + REGISTERED_OBSERVER, "Results should contain " + REGISTERED_OBSERVER,

Loading…
Cancel
Save