From b2e5bc5003d98387c02c8f01af6edf4b5c3000f9 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 30 Nov 2023 12:49:25 -0500 Subject: [PATCH] allow wasm to compile with ginkgo present (#1311) --- internal/output_interceptor_wasm.go | 7 +++++++ internal/progress_report_wasm.go | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 internal/output_interceptor_wasm.go create mode 100644 internal/progress_report_wasm.go diff --git a/internal/output_interceptor_wasm.go b/internal/output_interceptor_wasm.go new file mode 100644 index 000000000..4c374935b --- /dev/null +++ b/internal/output_interceptor_wasm.go @@ -0,0 +1,7 @@ +//go:build wasm + +package internal + +func NewOutputInterceptor() OutputInterceptor { + return &NoopOutputInterceptor{} +} diff --git a/internal/progress_report_wasm.go b/internal/progress_report_wasm.go new file mode 100644 index 000000000..8c53fe0ad --- /dev/null +++ b/internal/progress_report_wasm.go @@ -0,0 +1,10 @@ +//go:build wasm + +package internal + +import ( + "os" + "syscall" +) + +var PROGRESS_SIGNALS = []os.Signal{syscall.SIGUSR1}