Remove 726 test
The test verifies that the runtime logs an error with LOG(ERROR).
However the error logging doesn't seem to work reliable in all case. So
until we find a better check, remove the test.
Test: art-test
Bug: 149410951
Change-Id: I9ec5b0efaac39bd85124efa65a896c5cd50c770d
diff --git a/test/726-load-duplicate-dex-files/check b/test/726-load-duplicate-dex-files/check
deleted file mode 100644
index 117bd01..0000000
--- a/test/726-load-duplicate-dex-files/check
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-#
-# Copyright (C) 2020 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Content somewhere inside the output.
-grep 'Trying to load dex files which is already loaded in the same ClassLoader hierarchy.' "$2" >/dev/null
-MSG_FOUND=$?
-
-if [[ "$HEAD" != "$EXPECTED_HEAD" || $MSG_FOUND -ne 0 ]] ; then
- # Print out the log and return with error.
- cat "$2"
- exit 1
-fi
-
-# Success.
-exit 0
diff --git a/test/726-load-duplicate-dex-files/expected.txt b/test/726-load-duplicate-dex-files/expected.txt
deleted file mode 100644
index ef3043a..0000000
--- a/test/726-load-duplicate-dex-files/expected.txt
+++ /dev/null
@@ -1 +0,0 @@
-Trying to load dex files which is already loaded in the same ClassLoader hierarchy.
diff --git a/test/726-load-duplicate-dex-files/info.txt b/test/726-load-duplicate-dex-files/info.txt
deleted file mode 100644
index c055acf..0000000
--- a/test/726-load-duplicate-dex-files/info.txt
+++ /dev/null
@@ -1 +0,0 @@
-Tests that duplicate dex files get reported.
diff --git a/test/726-load-duplicate-dex-files/src/Main.java b/test/726-load-duplicate-dex-files/src/Main.java
deleted file mode 100644
index f156fb9..0000000
--- a/test/726-load-duplicate-dex-files/src/Main.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright 2020 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import dalvik.system.PathClassLoader;
-
-class Main {
- static final String DEX_FILE = System.getenv("DEX_LOCATION")
- + "/726-load-duplicate-dex-files.jar";
- static final String DEX_FILES = DEX_FILE + ":" + DEX_FILE;
-
- public static void main(String[] args) throws Exception {
- // Adding duplicate dex files to the classpath will trigger a runtime warning.
- PathClassLoader p = new PathClassLoader(DEX_FILES, Main.class.getClassLoader());
- }
-}