summaryrefslogtreecommitdiff
path: root/lib/fuzzer/tests/FuzzerUnittest.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2017-12-05 17:13:17 +0000
committerMatt Morehouse <mascasa@google.com>2017-12-05 17:13:17 +0000
commitde09e9c079964dd99b360aeb1220c4233352eeb9 (patch)
tree6ebf54604cbebe629d4634044aec1b8b7d69b511 /lib/fuzzer/tests/FuzzerUnittest.cpp
parentebc7f4959ad5b862f4e3e40dc3fdb900b0a3ace2 (diff)
[libFuzzer] Make redirects happen in proper sequence.
"> file" must come before "2>&1" to have redirection occur correctly in all cases. Fixes a regression on minimize_two_crashes.test. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@319792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/tests/FuzzerUnittest.cpp')
-rw-r--r--lib/fuzzer/tests/FuzzerUnittest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuzzer/tests/FuzzerUnittest.cpp b/lib/fuzzer/tests/FuzzerUnittest.cpp
index bba4fd6b9..c11299954 100644
--- a/lib/fuzzer/tests/FuzzerUnittest.cpp
+++ b/lib/fuzzer/tests/FuzzerUnittest.cpp
@@ -923,7 +923,7 @@ TEST(FuzzerCommand, SetOutput) {
EXPECT_TRUE(Cmd.isOutAndErrCombined());
CmdLine = Cmd.toString();
- EXPECT_EQ(CmdLine, makeCmdLine("", "2>&1 >thud"));
+ EXPECT_EQ(CmdLine, makeCmdLine("", ">thud 2>&1"));
}
int main(int argc, char **argv) {