Modify test_image_search_paths(self) to check for the pattern "%s-[^-]*-[^-]*" % self.getArchitecture()
from the output of running 'image list -t 3' command which lists the triples of the image list.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@130777 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/load_unload/TestLoadUnload.py b/test/load_unload/TestLoadUnload.py
index 94fef31..42e7c5c 100644
--- a/test/load_unload/TestLoadUnload.py
+++ b/test/load_unload/TestLoadUnload.py
@@ -49,8 +49,11 @@
 
         exe = os.path.join(os.getcwd(), "a.out")
         self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
+        print "Architecture to test for:", self.getArchitecture()
         self.expect("image list",
             substrs = [old_dylib])
+        self.expect("image list -t 3",
+            patterns = ["%s-[^-]*-[^-]*" % self.getArchitecture()])
         self.runCmd("target image-search-paths add %s %s" % (os.getcwd(), new_dir))
         # Add teardown hook to clear image-search-paths after the test.
         self.addTearDownHook(lambda: self.runCmd("target image-search-paths clear"))