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:
Alexander Kiselev
2026-02-06 07:19:24 -08:00
co-authored by Claude Opus 4.6
parent a5a7ed1423
commit 237ce5385d
+4 -3
View File
@@ -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()