Matabi / smali

Automatically exported from code.google.com/p/smali
0 stars 0 forks source link

gradle build error during smali tests on windows #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by mike1986 via irc

http://pastebin.com/TjbX4tDw

Original issue reported on code.google.com by jesusfreke@jesusfreke.com on 25 Sep 2012 at 1:04

GoogleCodeExporter commented 9 years ago
Current workaround is to build with:

gradlew -x test build

Original comment by jesusfreke@jesusfreke.com on 25 Sep 2012 at 1:04

GoogleCodeExporter commented 9 years ago
I need someone who is encountering this issue to download the 
smali_newline_test branch, try to run a build, and report back with the results 
(including the test log file).

git clone https://code.google.com/p/smali/
cd smali
git checkout smali_newline_test
gradlew.bat build

Original comment by jesusfreke@jesusfreke.com on 25 Sep 2012 at 1:07

GoogleCodeExporter commented 9 years ago
LexerTest > TypeAndIdentifierTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > ByteLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > MiscTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > CommentTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > SymbolTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > DirectiveTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > ShortLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > IntegerLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > LongLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > FloatLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > CharLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > StringLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > InstructionTest FAILED
    java.lang.AssertionError at LexerTest.java:158

LexerTest > RealSmaliFileTest FAILED
    java.lang.AssertionError at LexerTest.java:158

67 tests completed, 14 failed
:smali:test FAILED

FAILURE: Build failed with an exception.

Original comment by yyjdel...@gmail.com on 25 Sep 2012 at 3:34

GoogleCodeExporter commented 9 years ago
Great, thanks.

Original comment by jesusfreke@jesusfreke.com on 25 Sep 2012 at 3:38

GoogleCodeExporter commented 9 years ago
TEST-LexerTest.xml
http://pastebin.com/i8YgqEYM

Original comment by yyjdel...@gmail.com on 25 Sep 2012 at 3:39

GoogleCodeExporter commented 9 years ago
Pull down the latest code, and try the build again (for the smali_newline_test 
branch). If that works, I'll merge the change into master.

Original comment by jesusfreke@jesusfreke.com on 25 Sep 2012 at 3:47

GoogleCodeExporter commented 9 years ago
Yes, it works.BUILD SUCCESSFUL

Original comment by yyjdel...@gmail.com on 25 Sep 2012 at 3:54

GoogleCodeExporter commented 9 years ago
Ok, fix committed to master.

Original comment by jesusfreke@jesusfreke.com on 25 Sep 2012 at 4:07

GoogleCodeExporter commented 9 years ago
It's strange that the master branch is failed again.

LexerTest > CharLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:207

LexerTest > StringLiteralTest FAILED
    java.lang.AssertionError at LexerTest.java:207

LexerTest > SymbolTest FAILED
    java.lang.AssertionError at LexerTest.java:207
=======================================================
Add some DBG output, and it looks like the below:
expectedToken.tokenText="\x0a", expectedTokenText="\x0d\x0a", 
token.getText()="\x0a"

Original comment by yyjdel...@gmail.com on 25 Sep 2012 at 5:38