mirror of
https://github.com/encounter/ghidra-cli.git
synced 2026-07-10 03:18:56 -07:00
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:
co-authored by
Claude Opus 4.6
parent
e26634c03c
commit
5b595ab58a
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user