Make sure the timing output is also sent to the log file for dejagnu, not
the log file of the NightlyTest.pl script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18158 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl
index 053067e..39db5d3 100755
--- a/utils/NightlyTest.pl
+++ b/utils/NightlyTest.pl
@@ -548,7 +548,7 @@
#Run the feature and regression tests, results are put into testrun.sum
#Full log in testrun.log
- system "time -p gmake $MAKEOPTS check-dejagnu > $dejagnu_output 2>&1";
+ system "(time -p gmake $MAKEOPTS check-dejagnu) > $dejagnu_output 2>&1";
#Extract time of dejagnu tests
my $DejagnuTimeU = GetRegexNum "^user", 0, "([0-9.]+)", "$dejagnu_output";