]>
git.saurik.com Git - apple/libc.git/blob - tests/err.c
2 #include <darwintest.h>
7 T_DECL(err_multiple_exit_b
, "Repeated set exit blocks doesn't leak copied blocks")
10 for (int i
= 0; i
< ITERATIONS
; ++i
) {
11 err_set_exit_b(^(int j
) { num
+= j
; });
14 // Dummy expect is necessary to run leaks on this test.
15 T_EXPECT_NULL(NULL
, "DUMMY EXPECT");
18 T_DECL(err_multiple_exit
, "Setting exit w/o block after setting exit with block doesn't leak copied block")
21 err_set_exit_b(^(int j
) { num
+= j
; });
23 // Dummy expect is necessary to run leaks on this test.
24 T_EXPECT_NULL(NULL
, "DUMMY EXPECT");