changeset 92:1728795c29b7

Build dependencies for injection testcases
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 25 Jul 2011 10:01:14 +0800
parents a33dfe2dae9d
children 2fa9b6f21344
files paraspace/tests/injection_test.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/paraspace/tests/injection_test.py	Sun Jul 24 22:29:25 2011 +0800
+++ b/paraspace/tests/injection_test.py	Mon Jul 25 10:01:14 2011 +0800
@@ -19,6 +19,7 @@
 
 def inject_fakefile_to_helloworld_test():
     from paraspace.dex_deptracker import prepare_dep_decls
+    from paraspace.dex_deptracker import build_dependencies
     
     _install_dexfile_4_deptracker()
     
@@ -29,8 +30,10 @@
     
     helloworld_fn = os.path.join(srcroot, 'data', 'helloworld.dex')
     helloworld_dex = dexfile.DEXFile.open(helloworld_fn)
+    build_dependencies(helloworld_dex, all_dep_decls)
 
     fakefile_fn = os.path.join(srcroot, 'data', 'fakefile.dex')
     fakefile_dex = dexfile.DEXFile.open(fakefile_fn)
+    build_dependencies(fakefile_dex, all_dep_decls)
     pass