✗
Failing This test is currently failing.
Failed: runtime
Failure Output
Showing last 10 of 201 lines
Base file: 'tests/regression/400_RUNTIME_FEATURES/430_RUNTIME/430_042_registry_scope_debug/input.kz'
Resolving alias: $std
[FALLBACK 1/1] Trying: ../../koru_std
Resolved to: /Users/larsde/src/koru/koru_std/index.kz
✓ FOUND file: /Users/larsde/src/koru/koru_std/index.kz
✓ Resolved via fallback 1/1
AUTO-IMPORT: Queueing index '$std/index.kz' (namespace: std)
TR
... [truncated - 750KB total] Code
// Test: Registry Scope - Debug Flag Enabled
// Ensures [debug] entries are included when compiled with --debug.
~import "$std/runtime"
const std = @import("std");
~pub event debug.dump_state {}
~proc debug.dump_state {
}
~[registry:scope(admin)]std.runtime:register {
[debug]debug:*
}
pub fn main() void {
const segments = [_][]const u8{ "debug", "dump_state" };
const path = Path{
.module_qualifier = null,
.segments = &segments,
};
const inv = Invocation{
.path = path,
.args = &.{},
};
var result: DispatchResult = undefined;
dispatch_admin(&inv, &result) catch |err| {
std.debug.print("Dispatch error: {}\n", .{err});
std.process.exit(1);
};
if (!std.mem.eql(u8, result.branch, "dumped")) {
std.debug.print("Unexpected branch: {s}\n", .{result.branch});
std.process.exit(1);
}
}
Actual
Unexpected branch:
Test Configuration
MUST_RUN
Compiler Flags:
--debug