libgo: uncomment trace.Stop() call in testing package
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 7 Aug 2018 17:28:22 +0000 (17:28 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 7 Aug 2018 17:28:22 +0000 (17:28 +0000)
    Fix up the testing package to insure that execution traces
    work properly (e.g. "-test.trace=<XXX>" command line option). The
    call to stop tracing and emit the output file was stubbed out.

    Reviewed-on: https://go-review.googlesource.com/128275

From-SVN: r263363

gcc/go/gofrontend/MERGE
libgo/go/testing/testing.go

index 776a0a8c893bcd58c3223c6a8f3cf36e0f9f4dde..51098e77954450cde69a07ca13505bc4aff141aa 100644 (file)
@@ -1,4 +1,4 @@
-8997a3afcc746824cb70b48b32d9c86b4814807d
+274c88df4d6f9360dcd657b6e069a3b5a1d37a90
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index f39d5ef155c68a226fa865004b257e8f50881436..f56dbf8f6d6639a0510598187b35326f4d2362cd 100644 (file)
@@ -1159,7 +1159,7 @@ func (m *M) writeProfiles() {
                m.deps.StopCPUProfile() // flushes profile to disk
        }
        if *traceFile != "" {
-               // trace.Stop() // flushes trace to disk
+               trace.Stop() // flushes trace to disk
        }
        if *memProfile != "" {
                f, err := os.Create(toOutputDir(*memProfile))