Commit 296eeaa7 authored by Alex Brainman's avatar Alex Brainman

cmd/nm: do not fail TestNM if symbol has less then 3 columns in nm output

Fixes #7829

LGTM=dave
R=golang-codereviews, aram, dave
CC=golang-codereviews
https://golang.org/cl/89830043
parent 6a40d549
...@@ -19,16 +19,11 @@ import ( ...@@ -19,16 +19,11 @@ import (
var testData uint32 var testData uint32
func checkSymbols(t *testing.T, nmoutput []byte) { func checkSymbols(t *testing.T, nmoutput []byte) {
switch runtime.GOOS {
case "linux", "darwin", "solaris":
t.Skip("skipping test; see http://golang.org/issue/7829")
}
var checkSymbolsFound, testDataFound bool var checkSymbolsFound, testDataFound bool
scanner := bufio.NewScanner(bytes.NewBuffer(nmoutput)) scanner := bufio.NewScanner(bytes.NewBuffer(nmoutput))
for scanner.Scan() { for scanner.Scan() {
f := strings.Fields(scanner.Text()) f := strings.Fields(scanner.Text())
if len(f) < 3 { if len(f) < 3 {
t.Error("nm must have at least 3 columns")
continue continue
} }
switch f[2] { switch f[2] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment