fix: add require_ghidra!() guard to all integration tests

Tests that use DaemonTestHarness or ensure_test_project were missing the
require_ghidra!() macro, causing them to attempt bridge startup in CI
where Ghidra is not installed, resulting in 120s timeouts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alexander Kiselev
2026-02-05 12:44:11 -08:00
co-authored by Claude Opus 4.6
parent e26634c03c
commit 5b595ab58a
13 changed files with 72 additions and 0 deletions
+4
View File
@@ -14,6 +14,7 @@ const TEST_PROGRAM: &str = "sample_binary";
#[test]
#[serial]
fn test_program_info() {
require_ghidra!();
ensure_test_project(TEST_PROJECT, TEST_PROGRAM);
let harness =
@@ -38,6 +39,7 @@ fn test_program_info() {
#[test]
#[serial]
fn test_program_export_json() {
require_ghidra!();
ensure_test_project(TEST_PROJECT, TEST_PROGRAM);
let harness =
@@ -62,6 +64,7 @@ fn test_program_export_json() {
#[test]
#[serial]
fn test_program_close() {
require_ghidra!();
ensure_test_project(TEST_PROJECT, TEST_PROGRAM);
let harness =
@@ -84,6 +87,7 @@ fn test_program_close() {
#[test]
#[serial]
fn test_program_info_no_program() {
require_ghidra!();
ensure_test_project(TEST_PROJECT, TEST_PROGRAM);
let harness =