]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: gofmt after CL 192937
authorTobias Klauser <tklauser@distanz.ch>
Wed, 25 Sep 2019 06:48:26 +0000 (08:48 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 25 Sep 2019 07:05:18 +0000 (07:05 +0000)
CL 192937 introduced some changes which weren't properly gofmt'ed. Do so
now.

Change-Id: I2d2d57ea8a79fb41bc4ca59fa23f12198d615fd8
Reviewed-on: https://go-review.googlesource.com/c/go/+/196812
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/crash_test.go
src/runtime/testdata/testprog/vdso.go

index c2cab7c813bf558696b7dadff3a61fd037c165bd..89b55a8011d651e30e66cb8afd003c3406b0096b 100644 (file)
@@ -148,7 +148,7 @@ func TestVDSO(t *testing.T) {
        output := runTestProg(t, "testprog", "SignalInVDSO")
        want := "success\n"
        if output != want {
-               t.Fatalf("output:\n%s\n\nwanted:\n%s", output, want);
+               t.Fatalf("output:\n%s\n\nwanted:\n%s", output, want)
        }
 }
 
index 6036f45bc83c1e384d681c5c4b5277c0b683928e..ef92f487581ab37633bf7c75f3abca0764213329 100644 (file)
@@ -19,37 +19,37 @@ func init() {
 }
 
 func signalInVDSO() {
-        f, err := ioutil.TempFile("", "timeprofnow")
-        if err != nil {
+       f, err := ioutil.TempFile("", "timeprofnow")
+       if err != nil {
                fmt.Fprintln(os.Stderr, err)
                os.Exit(2)
-        }
+       }
 
-        if err := pprof.StartCPUProfile(f); err != nil {
+       if err := pprof.StartCPUProfile(f); err != nil {
                fmt.Fprintln(os.Stderr, err)
                os.Exit(2)
-        }
+       }
 
-        t0 := time.Now()
-        t1 := t0
-        // We should get a profiling signal 100 times a second,
-        // so running for 1 second should be sufficient.
-        for t1.Sub(t0) < time.Second {
-                t1 = time.Now()
-        }
+       t0 := time.Now()
+       t1 := t0
+       // We should get a profiling signal 100 times a second,
+       // so running for 1 second should be sufficient.
+       for t1.Sub(t0) < time.Second {
+               t1 = time.Now()
+       }
 
-        pprof.StopCPUProfile()
+       pprof.StopCPUProfile()
 
-        name := f.Name()
-        if err := f.Close(); err != nil {
+       name := f.Name()
+       if err := f.Close(); err != nil {
                fmt.Fprintln(os.Stderr, err)
                os.Exit(2)
-        }
+       }
 
-        if err := os.Remove(name); err != nil {
+       if err := os.Remove(name); err != nil {
                fmt.Fprintln(os.Stderr, err)
                os.Exit(2)
-        }
+       }
 
-       fmt.Println("success");
+       fmt.Println("success")
 }