Fix extras tests for tiered -A/-AA/-AAA and the analysis log line

- r2flutter-help: the help now lists -A/-AA/-AAA separately instead of
  -A[AA], so update both expected copies.
- analysis: run -qAAA and drop the EXPECT_ERR count line. The summary now
  carries the graph-xref count and the x22 fix changed the PP-ref total, and
  those counts also drift with the r2 build; the version-independent
  dart.class flag list remains the real assertion.
This commit is contained in:
pancake committed 2026-10-01 17:01:12 +02:00
1 parent cfb6448172
commit 49f174f3cd
2 files changed
+7 -6

No files matched your search

+1 -4
View File
@@ -3,7 +3,7 @@ FILE=bins/android/first/libapp.so
ARGS=-NN -e bin.relocs.apply=true
CMDS=<<EOF
.!sh -c "p=../src/r2/core_flutter.dylib; [ -f \"\$p\" ] || p=../src/r2/core_flutter.so; printf \"L %s\\n\" \"\$p\""
r2flutter -AAA
r2flutter -qAAA
f~dart.class
s 0x66a70
EOF
@@ -295,7 +295,4 @@ EXPECT=<<EOF
0x00008e20 0 dart.class.MonomorphicSmiableCall
0x00008e90 0 dart.class.Handle
EOF
EXPECT_ERR=<<EOF
INFO: Flutter analysis: 1311 functions, 4731 calls, 0 fields, 9 classes, 0 types, 42 strings, 2912 PP refs
EOF
RUN
+6 -2
View File
@@ -9,7 +9,9 @@ r2flutter
EOF
EXPECT=<<EOF
Usage: r2flutter [qjr*] <action>
| r2flutter -A[AA] analyze dart snapshot and apply flags/comments
| r2flutter -A apply flags, function names and signatures
| r2flutter -AA also seed anal.gp and apply ObjectPool xrefs
| r2flutter -AAA also run the full register-tracking scan (slow)
| r2flutter -c[jr*] dump classes
| r2flutter -C apply Dart classes, fields, methods and types
| r2flutter -D prof override Dart snapshot profile by hash or version
@@ -35,7 +37,9 @@ Usage: r2flutter [qjr*] <action>
Modifiers: q=quiet, j=json, r/*=r2 commands
===
Usage: r2flutter [qjr*] <action>
| r2flutter -A[AA] analyze dart snapshot and apply flags/comments
| r2flutter -A apply flags, function names and signatures
| r2flutter -AA also seed anal.gp and apply ObjectPool xrefs
| r2flutter -AAA also run the full register-tracking scan (slow)
| r2flutter -c[jr*] dump classes
| r2flutter -C apply Dart classes, fields, methods and types
| r2flutter -D prof override Dart snapshot profile by hash or version