Support rules for passing pointers between Go with C for Go 1.6

This commit is contained in:
Isamu Mogi 2016-01-27 16:04:31 +09:00
parent 116fab839a
commit 70c6f8198b
2 changed files with 79 additions and 12 deletions

View file

@ -2,13 +2,24 @@ package webp_test
import (
"bufio"
"fmt"
"image"
"os"
"testing"
"github.com/harukasan/go-libwebp/test/util"
"github.com/harukasan/go-libwebp/webp"
)
func TestMain(m *testing.M) {
result := m.Run()
if webp.GetDestinationManagerMapLen() > 0 {
fmt.Println("destinationManager leaked")
result = 2
}
os.Exit(result)
}
//
// Decode
//