mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-14 09:46:09 -07:00
Support rules for passing pointers between Go with C for Go 1.6
This commit is contained in:
parent
116fab839a
commit
70c6f8198b
2 changed files with 79 additions and 12 deletions
|
|
@ -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
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue