Modify TestSettings test for stderr.txt/stdout.txt to ignore an

optional path prior to the file base name.

On Linux x86_64 (Ubuntu 12.04) I am sometimes getting a full path
on the stderr.txt.  This changes the test for target.error-path and
target.output-path settings to ignore any optional directory before
the expected file base name.

llvm-svn: 207272
This commit is contained in:
Todd Fiala 2014-04-25 21:04:48 +00:00
parent 03d91c51e4
commit 6817df65f0

View File

@ -290,11 +290,11 @@ class SettingsCommandTestCase(TestBase):
self.expect("settings show target.error-path",
SETTING_MSG("target.error-path"),
startstr = 'target.error-path (file) = "stderr.txt"')
substrs = ['target.error-path (file) = ', 'stderr.txt"'])
self.expect("settings show target.output-path",
SETTING_MSG("target.output-path"),
startstr = 'target.output-path (file) = "stdout.txt"')
substrs = ['target.output-path (file) = ', 'stdout.txt"'])
self.runCmd("run", RUN_SUCCEEDED)