testdata: make pointer regexp less prone to flakes
Pointers are of the form "0x" and a number of hex characters. Those are all part of the obfuscated filename alphabet, so if we're unlucky enough, we can get hits: > cmp stdout reverse.stdout --- stdout +++ reverse.stdout @@ -4,7 +4,7 @@ runtime/debug.Stack(...) runtime/debug/stack.go:24 +0x?? test/main/lib.printStackTrace(...) - pv0x??mRa.go:1 +0x?? + test/main/lib/long_lib.go:32 +0x?? test/main/lib.(*ExportedLibType).ExportedLibMethod(...) test/main/lib/long_lib.go:19 +0x?? main.unexportedMainFunc.func1(...) Include the plus sign in the regular expression, which is used for showing pointers but isn't part of our alphabet.pull/460/head
parent
d25e718d0c
commit
716f007c2a
Loading…
Reference in New Issue