Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error - testInvalidReference FAILED #764

Open
bovirus opened this issue Apr 14, 2020 · 1 comment
Open

Compiling error - testInvalidReference FAILED #764

bovirus opened this issue Apr 14, 2020 · 1 comment

Comments

@bovirus
Copy link

bovirus commented Apr 14, 2020

Compiling thye source got from github I got

Task :baksmali:test

org.jf.baksmali.InstructionMethodItemTest > testInvalidReference FAILED
org.junit.ComparisonFailure at InstructionMethodItemTest.java:147

36 tests completed, 1 failed

Task :baksmali:test FAILED

System; Windows 10 Pro 64bit
Java Machine 8.0 build 241

@bovirus bovirus changed the title Compiling error Compiling error - testInvalidReference FAILED Apr 14, 2020
@ItWorksOnMine
Copy link

For future reference: If you are compiling on Windows, this is caused by Windows' use of "\r\n" instead of "\n". You can tell this if you look very closely at the error output. Changing the assertEquals statement in InstructionMethodItemTest.java to:
Assert.assertEquals("#Invalid reference\n#const-string v0, blahblahblah\nnop", stringWriter.toString().replace("\r", ""));
fixed the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants