-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
baksmali analysis test fails on windows when building apktool #592
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
Comments
Comment #1 originally posted by connor.tumbleson on 2013-07-01T16:31:34.000Z:
Could you confirm if this issue occurs in regular smali2b5? https://code.google.com/p/smali/source/list?name=dexlib_redesign I need to see if this is an apktool caused problem or smali, and won't be back near a Windows computer for a few days. |
Comment #2 originally posted by [email protected] on 2013-09-14T21:00:42.000Z:
|
Comment #3 originally posted by evilfire2046 on 2013-10-31T14:47:47.000Z:
Assert.assertEquals(smaliContents.replace("\r", "").replace("\n", ""), stringWriter.toString().replace("\r", "").replace("\n", "")); |
Comment #4 originally posted by [email protected] on 2013-11-08T19:14:39.000Z:
|
Comment #5 originally posted by connor.tumbleson on 2013-12-17T21:53:18.000Z:
|
Original issue 482 created by fx.schn on 2013-07-01T16:14:08.000Z:
What is the expected output? What do you see instead?
The error output is something along the lines of:
:brut.apktool.smali:baksmali:test
org.jf.baksmali.AnalysisTest > LocalTest FAILED
junit.framework.ComparisonFailure at AnalysisTest.java:107
org.jf.baksmali.AnalysisTest > MultipleStartInstructionsTest FAILED
junit.framework.ComparisonFailure at AnalysisTest.java:107
org.jf.baksmali.AnalysisTest > ConstructorTest FAILED
junit.framework.ComparisonFailure at AnalysisTest.java:107
org.jf.baksmali.AnalysisTest > RegisterEqualityOnMergeTest FAILED
junit.framework.ComparisonFailure at AnalysisTest.java:107
org.jf.baksmali.AnalysisTest > UninitRefIdentityTest FAILED
junit.framework.ComparisonFailure at AnalysisTest.java:107
org.jf.baksmali.AnalysisTest > DuplicateTest FAILED
junit.framework.ComparisonFailure at AnalysisTest.java:107
6 tests completed, 6 failed
:brut.apktool.smali:baksmali:test FAILED
What version of the product are you using? On what operating system?
Apktool beta 2 from git branch wip-2.0_smali2_merge on Windows 7 x64.
Please provide any additional information below.
The error occurs in this line:
AnalysisTest.java:107 Assert.assertEquals(smaliContents, stringWriter.toString());
Both strings contain essentially the same data, except for the line breaks. smaliContents comes from String smaliContents = readResource(smaliPath) which is a file using unix style line breaks (\n) when pulled from git. However, the stringWriter generates Windows-Style Linebreaks (\r\n) which is why the Assertion fails.
The text was updated successfully, but these errors were encountered: