Fixed the failing test:
authorGreg Clayton <gclayton@apple.com>
Wed, 28 Jan 2015 22:08:17 +0000 (22:08 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 28 Jan 2015 22:08:17 +0000 (22:08 +0000)
commitd26a1e5060dcf92c8508651526381a7309ab750d
tree53a305cd74fd378d0e2fc9b4ef3ee92ddb272dbb
parent4379d102730d3d43fa9b0470978f560012fc80a5
Fixed the failing test:

./dotest.py -A x86_64 -C clang -v -t  -f TestImageListMultiArchitecture.test_image_list_shows_multiple_architectures

The problem was that if the platform wasn't compatible with the current file in the "target create" command, it wasn't finding a platform that was like it used to.

Also, the currently selected platform was being used upload the file _before_ the target was created which was incorrect as "target create a.out" might switch platforms if its architecture doesn't match, so I moved the uploading to happen after the target was created so we use the right platform (the one in the target, not the selected one).

llvm-svn: 227380
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Target/TargetList.cpp
lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py