File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,6 +106,11 @@ int main(void)
106106{
107107 CREATE_AUTORELEASE_POOL (pool);
108108
109+ #if !defined(clang)
110+ testHopeful = YES ;
111+ #endif
112+
113+ // testcases here
109114 BNode *b = AUTORELEASE ([BNode new ]);
110115 b.e = 1 ;
111116
@@ -164,6 +169,11 @@ int main(void)
164169 PASS (obs->calls == 1 , " updating e should still notify" );
165170
166171 [root removeObserver: obs forKeyPath: @" x" ];
172+
173+ #if !defined(clang)
174+ testHopeful = NO ;
175+ #endif
176+
167177 DESTROY (pool);
168178 return 0 ;
169179}
Original file line number Diff line number Diff line change @@ -99,6 +99,10 @@ int main(void)
9999{
100100 CREATE_AUTORELEASE_POOL (pool);
101101
102+ #if !defined(clang)
103+ testHopeful = YES ;
104+ #endif
105+
102106 BVSRoot *root = AUTORELEASE ([BVSRoot new ]);
103107 root.holder = AUTORELEASE ([BVSHolder new ]);
104108
@@ -128,6 +132,11 @@ int main(void)
128132 " Single leaf mutation should emit one derived notification" );
129133
130134 [root removeObserver: observer forKeyPath: @" derived" ];
135+
136+ #if !defined(clang)
137+ testHopeful = NO ;
138+ #endif
139+
131140 DESTROY (pool);
132141 return 0 ;
133142}
Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ int main(void)
111111{
112112 CREATE_AUTORELEASE_POOL (pool);
113113
114+ #if !defined(clang)
115+ testHopeful = YES ;
116+ #endif
117+
114118 {
115119 CDODirectCycleRoot *root = AUTORELEASE ([CDODirectCycleRoot new ]);
116120 CDOObserver *observer = AUTORELEASE ([CDOObserver new ]);
@@ -141,6 +145,10 @@ int main(void)
141145 [root removeObserver: observer forKeyPath: @" derived" ];
142146 }
143147
148+ #if !defined(clang)
149+ testHopeful = NO ;
150+ #endif
151+
144152 DESTROY (pool);
145153 return 0 ;
146154}
Original file line number Diff line number Diff line change @@ -97,6 +97,12 @@ int main(void)
9797{
9898 CREATE_AUTORELEASE_POOL (pool);
9999
100+ #if !defined(clang)
101+ testHopeful = YES ;
102+ #endif
103+
104+ // testcases here
105+
100106 VACRoot *root = AUTORELEASE ([VACRoot new ]);
101107 root.holder = AUTORELEASE ([VACHolder new ]);
102108
@@ -123,6 +129,11 @@ int main(void)
123129 " selectedA.leaf.flag branch should be wired (leaf.flag notifies derived)" );
124130
125131 [root removeObserver: obs forKeyPath: @" derived" ];
132+
133+ #if !defined(clang)
134+ testHopeful = NO ;
135+ #endif
136+
126137 DESTROY (pool);
127138 return 0 ;
128139}
You can’t perform that action at this time.
0 commit comments