From 9fd97e71d0330d6b6509f28686cf53825bc80941 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 5 Nov 2025 20:13:19 +0900 Subject: treewide: fit test untyped int literals in 32-bit This enables hakurei test suite to run on 32-bit targets. Signed-off-by: Ophestra --- container/stub/exit_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'container/stub/exit_test.go') diff --git a/container/stub/exit_test.go b/container/stub/exit_test.go index 15ad31f1..5d850759 100644 --- a/container/stub/exit_test.go +++ b/container/stub/exit_test.go @@ -53,7 +53,7 @@ func TestHandleExit(t *testing.T) { } }() defer stub.HandleExit(ot) - panic(0xcafe0000) + panic(0xcafe0) }) t.Run("Fail", func(t *testing.T) { @@ -66,7 +66,7 @@ func TestHandleExit(t *testing.T) { } }() defer handleExitNew(ot) - panic(0xcafe0000) + panic(0xcafe0) }) }) @@ -82,14 +82,14 @@ func TestHandleExit(t *testing.T) { t.Parallel() defer func() { - want := 0xcafebabe + want := 0xcafe if r := recover(); r != want { t.Errorf("recover: %v, want %v", r, want) } }() defer stub.HandleExit(t) - panic(0xcafebabe) + panic(0xcafe) }) t.Run("new", func(t *testing.T) { -- cgit v1.3.1