| 
									
										
										
										
											2014-04-04 12:29:42 -04:00
										 |  |  | USING: destructors kernel libc libc.private namespaces | 
					
						
							|  |  |  | tools.test ;
 | 
					
						
							| 
									
										
										
										
											2014-04-04 12:28:39 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 100 malloc "block" set
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-02 20:28:17 -04:00
										 |  |  | { t } [ "block" get malloc-exists? ] unit-test | 
					
						
							| 
									
										
										
										
											2014-04-04 12:28:39 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-02 20:28:17 -04:00
										 |  |  | { } [ [ "block" get &free drop ] with-destructors ] unit-test | 
					
						
							| 
									
										
										
										
											2014-04-04 12:28:39 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-02 20:28:17 -04:00
										 |  |  | { f } [ "block" get malloc-exists? ] unit-test | 
					
						
							| 
									
										
										
										
											2014-04-04 12:28:39 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-02 20:28:17 -04:00
										 |  |  | { "Operation not permitted" } [ 1 strerror ] unit-test |