@@ -112,6 +112,7 @@ func TestFillDefault(t *testing.T) {
112
112
RemoveDefaults : ptr .Of (false ),
113
113
},
114
114
NestedVirtualization : ptr .Of (false ),
115
+ SuspendOnSigInt : ptr .Of (false ),
115
116
Plain : ptr .Of (false ),
116
117
User : User {
117
118
Name : ptr .Of (user .Username ),
@@ -437,6 +438,7 @@ func TestFillDefault(t *testing.T) {
437
438
BinFmt : ptr .Of (true ),
438
439
},
439
440
NestedVirtualization : ptr .Of (true ),
441
+ SuspendOnSigInt : ptr .Of (true ),
440
442
User : User {
441
443
Name : ptr .Of ("xxx" ),
442
444
Comment : ptr .Of ("Foo Bar" ),
@@ -474,11 +476,13 @@ func TestFillDefault(t *testing.T) {
474
476
Enabled : ptr .Of (true ),
475
477
BinFmt : ptr .Of (true ),
476
478
}
479
+ expect .SuspendOnSigInt = ptr .Of (true )
477
480
} else {
478
481
expect .Rosetta = Rosetta {
479
482
Enabled : ptr .Of (false ),
480
483
BinFmt : ptr .Of (true ),
481
484
}
485
+ expect .SuspendOnSigInt = ptr .Of (false )
482
486
}
483
487
expect .Plain = ptr .Of (false )
484
488
@@ -660,6 +664,7 @@ func TestFillDefault(t *testing.T) {
660
664
BinFmt : ptr .Of (false ),
661
665
},
662
666
NestedVirtualization : ptr .Of (false ),
667
+ SuspendOnSigInt : ptr .Of (false ),
663
668
User : User {
664
669
Name : ptr .Of ("foo" ),
665
670
Comment : ptr .Of ("foo bar baz" ),
@@ -723,6 +728,7 @@ func TestFillDefault(t *testing.T) {
723
728
expect .Plain = ptr .Of (false )
724
729
725
730
expect .NestedVirtualization = ptr .Of (false )
731
+ expect .SuspendOnSigInt = ptr .Of (false )
726
732
727
733
FillDefault (& y , & d , & o , filePath , false )
728
734
assert .DeepEqual (t , & y , & expect , opts ... )
0 commit comments