]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: adjust function name in fatal message
authorTobias Klauser <tklauser@distanz.ch>
Mon, 18 Sep 2023 15:41:55 +0000 (17:41 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 18 Sep 2023 17:02:50 +0000 (17:02 +0000)
CL 481620 changed the test to use LookPath.

Change-Id: Ie7b3110775b586701b6df6aeee38f26402227eb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/529095
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Bypass: Bryan Mills <bcmills@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/exec/lp_linux_test.go

index 60cb13e9b71308ba3ac544201f9578a323260440..a7f9aa24b8cdbc2feaf200cc4bbb397c2a29247d 100644 (file)
@@ -50,7 +50,7 @@ func TestFindExecutableVsNoexec(t *testing.T) {
        // Check that it works as expected.
        _, err = exec.LookPath(path)
        if err != nil {
-               t.Fatalf("findExecutable: got %v, want nil", err)
+               t.Fatalf("LookPath: got %v, want nil", err)
        }
 
        for {