mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
test/marshalling: rerun test multiple times to help detect heap corruption
This commit is contained in:
parent
6da9849a4a
commit
47c1a3d879
@ -8,9 +8,7 @@ import (
|
||||
"github.com/mappu/miqt/qt"
|
||||
)
|
||||
|
||||
func TestMarshalling(t *testing.T) {
|
||||
|
||||
qt.NewQApplication(os.Args)
|
||||
func testMarshalling(t *testing.T) {
|
||||
|
||||
// Bool
|
||||
t.Run("Bool", func(t *testing.T) {
|
||||
@ -107,5 +105,16 @@ func TestMarshalling(t *testing.T) {
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
func TestMarshalling(t *testing.T) {
|
||||
|
||||
qt.NewQApplication(os.Args)
|
||||
|
||||
// In case of heap corruption, run the whole test multiple times.
|
||||
|
||||
for i := 0; i < 5; i++ {
|
||||
testMarshalling(t)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user