@@ -43,12 +43,12 @@ func TestUpdateVMOptions(t *testing.T) {
43
43
Src string
44
44
Expectation string
45
45
}{
46
- {"goland64.vmoptions" , "goland" , nil , "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true\n -Dgtw.disable.exit.dialog=true" },
47
- {"idea64.vmoptions" , "intellij" , nil , "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true\n -Dgtw.disable.exit.dialog=true\n -Djdk.configure.existing=true" },
48
- {"idea64.vmoptions (INTELLIJ_VMOPTIONS env set)" , "intellij" , map [string ]string {"INTELLIJ_VMOPTIONS" : "-Xmx2048m" }, "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx2048m\n -Dsun.tools.attach.tmp.only=true\n -Dgtw.disable.exit.dialog=true\n -Djdk.configure.existing=true" },
49
- {"idea64.vmoptions (INTELLIJ_VMOPTIONS env set)" , "intellij" , map [string ]string {"INTELLIJ_VMOPTIONS" : "-Xmx4096m" }, "-Xms128m\n -Xmx2g\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx4096m\n -Dsun.tools.attach.tmp.only=true\n -Dgtw.disable.exit.dialog=true\n -Djdk.configure.existing=true" },
50
- {"idea64.vmoptions (INTELLIJ_VMOPTIONS env set)" , "intellij" , map [string ]string {"INTELLIJ_VMOPTIONS" : "-Xmx4096m -XX:MaxRAMPercentage=75" }, "-Xms128m\n -Xmx2g\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx4096m\n -XX:MaxRAMPercentage=75\n -Dsun.tools.attach.tmp.only=true\n -Dgtw.disable.exit.dialog=true\n -Djdk.configure.existing=true" },
51
- {"goland64.vmoptions (GOLAND_VMOPTIONS env set with conflicting options)" , "goland" , map [string ]string {"GOLAND_VMOPTIONS" : "-ea -XX:+IgnoreUnrecognizedVMOptions -XX:MaxRAMPercentage=75 -XX:MaxRAMPercentage=50" }, "-Xms128m\n -Xmx2g\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx2g\n -Dsun.tools.attach.tmp.only=true\n -Dgtw.disable.exit.dialog=true\n -ea\n -XX:+IgnoreUnrecognizedVMOptions\n -XX:MaxRAMPercentage=50" },
46
+ {"goland64.vmoptions" , "goland" , nil , "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true\n -Dfreeze.reporter.profiling=false \n - Dgtw.disable.exit.dialog=true" },
47
+ {"idea64.vmoptions" , "intellij" , nil , "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true\n -Dfreeze.reporter.profiling=false \n - Dgtw.disable.exit.dialog=true\n -Djdk.configure.existing=true" },
48
+ {"idea64.vmoptions (INTELLIJ_VMOPTIONS env set)" , "intellij" , map [string ]string {"INTELLIJ_VMOPTIONS" : "-Xmx2048m" }, "-Xms128m\n -Xmx750m\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx2048m\n -Dsun.tools.attach.tmp.only=true\n -Dfreeze.reporter.profiling=false \n - Dgtw.disable.exit.dialog=true\n -Djdk.configure.existing=true" },
49
+ {"idea64.vmoptions (INTELLIJ_VMOPTIONS env set)" , "intellij" , map [string ]string {"INTELLIJ_VMOPTIONS" : "-Xmx4096m" }, "-Xms128m\n -Xmx2g\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx4096m\n -Dsun.tools.attach.tmp.only=true\n -Dfreeze.reporter.profiling=false \n - Dgtw.disable.exit.dialog=true\n -Djdk.configure.existing=true" },
50
+ {"idea64.vmoptions (INTELLIJ_VMOPTIONS env set)" , "intellij" , map [string ]string {"INTELLIJ_VMOPTIONS" : "-Xmx4096m -XX:MaxRAMPercentage=75" }, "-Xms128m\n -Xmx2g\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx4096m\n -XX:MaxRAMPercentage=75\n -Dsun.tools.attach.tmp.only=true\n -Dfreeze.reporter.profiling=false \n - Dgtw.disable.exit.dialog=true\n -Djdk.configure.existing=true" },
51
+ {"goland64.vmoptions (GOLAND_VMOPTIONS env set with conflicting options)" , "goland" , map [string ]string {"GOLAND_VMOPTIONS" : "-ea -XX:+IgnoreUnrecognizedVMOptions -XX:MaxRAMPercentage=75 -XX:MaxRAMPercentage=50" }, "-Xms128m\n -Xmx2g\n -Dsun.tools.attach.tmp.only=true" , "-Xms128m\n -Xmx2g\n -Dsun.tools.attach.tmp.only=true\n -Dfreeze.reporter.profiling=false \n - Dgtw.disable.exit.dialog=true\n -ea\n -XX:+IgnoreUnrecognizedVMOptions\n -XX:MaxRAMPercentage=50" },
52
52
}
53
53
for _ , test := range tests {
54
54
for v := range test .EnvVar {
0 commit comments