OSDN Git Service

Disable tracing if enabled by default for new tracing test.
authorJeff Hao <jeffhao@google.com>
Mon, 8 Sep 2014 22:32:39 +0000 (15:32 -0700)
committerJeff Hao <jeffhao@google.com>
Mon, 8 Sep 2014 22:34:14 +0000 (15:34 -0700)
Bug: 17412385
Change-Id: If963a9ba2214c72efbef673a840bbeb6fdbb1795

test/099-vmdebug/src/Main.java

index d51ec6e..e2c04db 100644 (file)
@@ -41,6 +41,10 @@ public class Main {
         File tempFile = new File(tempFileName);
         tempFile.delete();
 
+        if (VMDebug.getMethodTracingMode() != 0) {
+            VMDebug.stopMethodTracing();
+        }
+
         System.out.println("Confirm enable/disable");
         System.out.println("status=" + VMDebug.getMethodTracingMode());
         VMDebug.startMethodTracing(tempFileName, 0, 0, false, 0);