question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting different results on different OSes

See original GitHub issue

Stryker is reporting different results on different OSes.

TL;DR

While testing Stryker I stumbled upon an intriguing issue, Stryker was reporting some non-killed mutants which I didn’t think twice about as it seemed it was working as expected. Then I uploaded the project to a private GitLab server and looked at CI results, one mutant was killed (which didn’t happen on my Windows 10 PC).

The issue

When running on Windows 10 (log-20180928-windows-10.txt) or Ubuntu under Windows 10 (log-20180928-windows-10-linux.txt) all running .Net Core SDK 2.1.402 following mutant is marked as Survived but it shouldn’t survive given the test case (see MutationTesting.zip).

Binary expression mutation on line 6: 'temp < 1000' ==> 'temp > 1000'

While running on Docker (image: microsoft/dotnet:2.1.402-sdk) it is killed as expected (log-20180928-linux-docker.txt).

I was trying to replicate on public GitLab server, but I got this error:

[13:49:31 ERR] An error occurred during the mutationtest run 
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: MaxDegreeOfParallelism
   at System.Threading.Tasks.ParallelOptions.set_MaxDegreeOfParallelism(Int32 value)
   at Stryker.Core.MutationTest.MutationTestProcess.Test()
   at Stryker.Core.StrykerRunner.RunMutationTest(StrykerOptions options)

During my testing I also got both mutants killed on Windows 10, which happened after I deleted my native language folder from SDK installation so I could send a proper (English speaking) report. Cleaning output folders did fix this issue and results got back to “normal”.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Feb 22, 2022

Can do after work. Hope I remember.

0reactions
rouke-broersmacommented, Feb 22, 2022

That is a good suggestion. Could you create a feature request for it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Same source code but different result on different operating ...
To elaborate on the existing answers, I would like to add an explanation. In your code, i is an int variable. You assign...
Read more >
Podcast: When a Different OS Gets Different Results
There's a bug in Python scripts that caused different results in identical routines run on different operating systems.
Read more >
Why am I getting different results for this C program in ...
You are getting different result because of the undeclared variable "num" . Now this is because "num" is assuming a garbage value ....
Read more >
c++ - Does the output of a compiler depend on the OS you ...
Can it be that the same Code, compiled by the same compiler produces a different binary dependent on the version of Windows (Windows...
Read more >
Any potential problems with mixed OS versions for Active ...
You can mix different versions of operating systems across the Domain Controllers, the only thing important is the Domain and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found