summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-03-14 14:58:31 +0000
committerPavel Labath <labath@google.com>2017-03-14 14:58:31 +0000
commitbb114f84e772535be2a7effe0b96d65537893c2f (patch)
treea4b39321f05f9704d8b1e2483b5659d72c3d385f
parent2de256642bb2dce8a5d043a21785cac4b926a094 (diff)
downloadbcm5719-llvm-bb114f84e772535be2a7effe0b96d65537893c2f.tar.gz
bcm5719-llvm-bb114f84e772535be2a7effe0b96d65537893c2f.zip
Fix flakyness in TestCompletion
One of the file name templates was occasionally generating the name "fooa***", which conflicted with the one of the tests expectation that there is only one item beginning with "fooa". There doesn't seem to be a good reason for using random file templates here, so just switch to a fixed set of files to increase reproducibility. llvm-svn: 297743
-rw-r--r--lldb/unittests/Interpreter/TestCompletion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/unittests/Interpreter/TestCompletion.cpp b/lldb/unittests/Interpreter/TestCompletion.cpp
index aef4ae11ff0..4a43ff48047 100644
--- a/lldb/unittests/Interpreter/TestCompletion.cpp
+++ b/lldb/unittests/Interpreter/TestCompletion.cpp
@@ -127,8 +127,8 @@ protected:
ASSERT_NO_ERROR(fs::createUniqueDirectory("FsCompletion", BaseDir));
const char *DirNames[] = {"foo", "fooa", "foob", "fooc",
"bar", "baz", "test_folder"};
- const char *FileNames[] = {"aa%%%%.tmp", "ab%%%%.tmp", "ac%%%%.tmp",
- "foo%%%%.tmp", "bar%%%%.tmp", "baz%%%%.tmp"};
+ const char *FileNames[] = {"aa1234.tmp", "ab1234.tmp", "ac1234.tmp",
+ "foo1234.tmp", "bar1234.tmp", "baz1234.tmp"};
SmallString<128> *Dirs[] = {&DirFoo, &DirFooA, &DirFooB, &DirFooC,
&DirBar, &DirBaz, &DirTestFolder};
for (auto Dir : llvm::zip(DirNames, Dirs)) {
OpenPOWER on IntegriCloud