| ... | @@ -2511,6 +2511,19 @@ pub fn populateTestFunctions( | ... | @@ -2511,6 +2511,19 @@ pub fn populateTestFunctions( |
| 2511 | | 2511 | |
| 2512 | for (test_fn_vals, zcu.test_functions.keys()) |*test_fn_val, test_nav_index| { | 2512 | for (test_fn_vals, zcu.test_functions.keys()) |*test_fn_val, test_nav_index| { |
| 2513 | const test_nav = ip.getNav(test_nav_index); | 2513 | const test_nav = ip.getNav(test_nav_index); |
| | 2514 | |
| | 2515 | { |
| | 2516 | // The test declaration might have failed; if that's the case, just return, as we'll |
| | 2517 | // be emitting a compile error anyway. |
| | 2518 | const cau = test_nav.analysis_owner.unwrap().?; |
| | 2519 | const anal_unit: AnalUnit = .wrap(.{ .cau = cau }); |
| | 2520 | if (zcu.failed_analysis.contains(anal_unit) or |
| | 2521 | zcu.transitive_failed_analysis.contains(anal_unit)) |
| | 2522 | { |
| | 2523 | return; |
| | 2524 | } |
| | 2525 | } |
| | 2526 | |
| 2514 | const test_nav_name = test_nav.fqn; | 2527 | const test_nav_name = test_nav.fqn; |
| 2515 | const test_nav_name_len = test_nav_name.length(ip); | 2528 | const test_nav_name_len = test_nav_name.length(ip); |
| 2516 | const test_name_anon_decl: InternPool.Key.Ptr.BaseAddr.Uav = n: { | 2529 | const test_name_anon_decl: InternPool.Key.Ptr.BaseAddr.Uav = n: { |