Add sdk_version:"none" to replace no_standard_libs:true
Where possible this duplicates any tests that use no_standard_libs:true with ones that use sdk_version:"none". If not possible (e.g. in the default targets included in java/testing.go) it switches some to use sdk_version:"none" to ensure that there is no regression in the behavior of no_standard_libs:true. Follow up changes will switch all usages of no_standard_libs:true over to use sdk_version:"none" at which point no_standard_libs will be removed. Bug: 134566750 Test: m droid Change-Id: I5f0fd3daa980f6b223abe454cba7f25a97a39d7a
This commit is contained in:
@@ -113,7 +113,7 @@ func TestClasspath(t *testing.T) {
|
||||
},
|
||||
{
|
||||
|
||||
name: "nostdlib",
|
||||
name: "nostdlib - no_standard_libs: true",
|
||||
properties: `no_standard_libs: true, system_modules: "none"`,
|
||||
system: "none",
|
||||
bootclasspath: []string{`""`},
|
||||
@@ -121,12 +121,28 @@ func TestClasspath(t *testing.T) {
|
||||
},
|
||||
{
|
||||
|
||||
name: "nostdlib system_modules",
|
||||
name: "nostdlib",
|
||||
properties: `sdk_version: "none", system_modules: "none"`,
|
||||
system: "none",
|
||||
bootclasspath: []string{`""`},
|
||||
classpath: []string{},
|
||||
},
|
||||
{
|
||||
|
||||
name: "nostdlib system_modules - no_standard_libs: true",
|
||||
properties: `no_standard_libs: true, system_modules: "core-platform-api-stubs-system-modules"`,
|
||||
system: "core-platform-api-stubs-system-modules",
|
||||
bootclasspath: []string{`""`},
|
||||
classpath: []string{},
|
||||
},
|
||||
{
|
||||
|
||||
name: "nostdlib system_modules",
|
||||
properties: `sdk_version: "none", system_modules: "core-platform-api-stubs-system-modules"`,
|
||||
system: "core-platform-api-stubs-system-modules",
|
||||
bootclasspath: []string{`""`},
|
||||
classpath: []string{},
|
||||
},
|
||||
{
|
||||
|
||||
name: "host default",
|
||||
@@ -145,11 +161,17 @@ func TestClasspath(t *testing.T) {
|
||||
bootclasspath: []string{"jdk8/jre/lib/jce.jar", "jdk8/jre/lib/rt.jar"},
|
||||
},
|
||||
{
|
||||
name: "host supported nostdlib",
|
||||
name: "host supported nostdlib - no_standard_libs: true",
|
||||
host: android.Host,
|
||||
properties: `host_supported: true, no_standard_libs: true, system_modules: "none"`,
|
||||
classpath: []string{},
|
||||
},
|
||||
{
|
||||
name: "host supported nostdlib",
|
||||
host: android.Host,
|
||||
properties: `host_supported: true, sdk_version: "none", system_modules: "none"`,
|
||||
classpath: []string{},
|
||||
},
|
||||
{
|
||||
|
||||
name: "unbundled sdk v25",
|
||||
|
Reference in New Issue
Block a user