projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca0a687
)
[EditLineTests] Call setenv() before editline is initialized.
author
Davide Italiano
<davide@freebsd.org>
Wed, 24 Apr 2019 18:39:39 +0000
(18:39 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Wed, 24 Apr 2019 18:39:39 +0000
(18:39 +0000)
llvm-svn: 359124
lldb/unittests/Editline/EditlineTest.cpp
patch
|
blob
|
history
diff --git
a/lldb/unittests/Editline/EditlineTest.cpp
b/lldb/unittests/Editline/EditlineTest.cpp
index 1a4bd37e767ff4df56155519695e470298797a31..f4130d0ea91f1a9370b2a4bad29cd82d21d551fd 100644
(file)
--- a/
lldb/unittests/Editline/EditlineTest.cpp
+++ b/
lldb/unittests/Editline/EditlineTest.cpp
@@
-245,11
+245,13
@@
private:
std::shared_ptr<std::thread> _sp_output_thread;
public:
- void SetUp() {
- FileSystem::Initialize();
-
+ static void SetUpTestCase() {
// We need a TERM set properly for editline to work as expected.
setenv("TERM", "vt100", 1);
+ }
+
+ void SetUp() {
+ FileSystem::Initialize();
// Validate the editline adapter.
EXPECT_TRUE(_el_adapter.IsValid());