From 3b4b379950e119fd2299f71f199b53da5af13c7d Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Thu, 23 Jan 2025 09:34:12 +0100 Subject: [PATCH] script_opt: Use emit_builtin_error() for Lookup-Conn Still create a separate baseline file because ZAM doesn't provide detailed location information. Patch for ZBI.op provided by @vpax --- src/script_opt/ZAM/OPs/ZBI.op | 2 +- testing/btest/Baseline.zam/bifs.lookup_connection/.stderr | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 testing/btest/Baseline.zam/bifs.lookup_connection/.stderr diff --git a/src/script_opt/ZAM/OPs/ZBI.op b/src/script_opt/ZAM/OPs/ZBI.op index ed0e0c58a1..be13f0f082 100644 --- a/src/script_opt/ZAM/OPs/ZBI.op +++ b/src/script_opt/ZAM/OPs/ZBI.op @@ -130,7 +130,7 @@ eval auto cid = $1; res = conn->GetVal(); else { - ERROR2("connection ID not a known connection", cid); + emit_builtin_error("connection ID not a known connection", cid); res = build_dummy_conn_record(); } AssignTarget($$, ZVal(res, res->GetType())); diff --git a/testing/btest/Baseline.zam/bifs.lookup_connection/.stderr b/testing/btest/Baseline.zam/bifs.lookup_connection/.stderr new file mode 100644 index 0000000000..a3d89ea788 --- /dev/null +++ b/testing/btest/Baseline.zam/bifs.lookup_connection/.stderr @@ -0,0 +1,7 @@ +### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. +1362692526.869344 error: invalid connection ID record encountered: the proto field has the "unknown" 65535 value. Did you forget to set it? +1362692526.869344 error in : connection ID not a known connection ([orig_h=141.142.228.5, orig_p=59856/tcp, resp_h=192.150.187.43, resp_p=80/tcp, proto=65535]) +1362692526.869344 error: invalid connection ID record encountered: the proto field has the "unknown" 65535 value. Did you forget to set it? +1362692526.869344 error: invalid connection ID record encountered +1362692526.869344 error in : connection ID not a known connection ([orig_h=, orig_p=, resp_h=, resp_p=, proto=65535]) +1362692526.869344 error: invalid connection ID record encountered