mirror of
https://github.com/encounter/ghidra-cli.git
synced 2026-07-10 03:18:56 -07:00
fix: diff test - use main instead of _start for macOS compatibility
_start doesn't exist on macOS Mach-O binaries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a5a7ed1423
commit
237ce5385d
+4
-3
@@ -45,13 +45,14 @@ fn test_diff_functions() {
|
||||
DaemonTestHarness::new(TEST_PROJECT, TEST_PROGRAM).expect("Failed to start daemon");
|
||||
|
||||
// diff functions requires two function names/addresses
|
||||
// Using _start (entry point) for both since we just want to verify command works
|
||||
// Using main for both since we just want to verify command works
|
||||
// (note: _start doesn't exist on macOS Mach-O binaries)
|
||||
Command::cargo_bin("ghidra")
|
||||
.unwrap()
|
||||
.arg("diff")
|
||||
.arg("functions")
|
||||
.arg("_start")
|
||||
.arg("_start")
|
||||
.arg("main")
|
||||
.arg("main")
|
||||
.arg("--project")
|
||||
.arg(TEST_PROJECT)
|
||||
.assert()
|
||||
|
||||
Reference in New Issue
Block a user