muter-mutation-testing / muter

🔎 Automated mutation testing for Swift 🕳️
MIT License
498 stars 39 forks source link

Command line failure: "[1] 97764 illegal hardware instruction muter run" #211

Closed drseg closed 1 year ago

drseg commented 2 years ago

When running muter via 'muter run' or 'muter' from the root directory of a Swift Package I'm working on, I get the following line after running and passing all the unit tests during their first run:

Test Suite 'All tests' passed at 2021-12-21 23:40:02.538.
     Executed 95 tests, with 0 failures (0 unexpected) in 0.681 (0.690) seconds
[1]    97764 illegal hardware instruction  muter run

Muter seems to exit at this point before performing any mutations. I'm running Xcode and tools 13.2, Muter 15 installed via git today. Any ideas what might be happening?

Automatically generated muter.conf file is as follows:

{
  "arguments" : [
    "test"
  ],
  "exclude" : [
    "Package.swift"
  ],
  "excludeCalls" : [

  ],
  "executable" : "\/usr\/bin\/swift"
}

Edit: tried running muter on itself, got the following:

[398/403] Compiling muterTests FileManagerCanarySpec.swift
[399/403] Compiling muterTests ChangeLogicalConnectorOperatorSpec.swift
[400/403] Compiling muterTests NegateConditionalsOperatorSpec.swift
[401/403] Compiling muterTests RemoveSideEffectsOperatorSpec.swift
[402/403] Compiling muterTests PerformMutationTestingSpec.swift
[403/404] Merging module muterTests
error: unknown argument: '-rpath'
[403/404] Linking muterPackageTests
error: fatalError

⚠️ ⚠️ ⚠️ ⚠️ ⚠️  See the Muter error log above this line  ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
pro-sumer commented 2 years ago

Same error: unknown argument: '-rpath' issue here.

Since I also experience #217 I can't muter at all (neither local build nor Homebrew install)

rakaramos commented 1 year ago

please try the newest version of Muter. if muter-mutation-testing/muter/pull/249 has already been merged, you can use Xcode 15.