This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][GCC][Testsuite] Have dg-cmp-results reject log files.


On 23 January 2018 11:31:27 CET, Tamar Christina <tamar.christina@arm.com> wrote:
>Hi All,
>
>This patch makes dg-cmp-results.sh reject the use of log files in the
>comparison.
>Often when given a log file dg-cmp-results will give incomplete/wrong
>output and
>using log instead of sum is one autocomplete tab away.
>
>Instead have the tool guard against such mistakes.

+if test "$OEXT" = "log"; then
+    echo "<old-file> must be a sum file instead of log file."
+    exit 1
+fi
+
+if test "$NEXT" = "log"; then
+    echo "<old-file> must be a sum file instead of log file."

typo: new-file

+    exit 1
+fi
 
>
>Ok for trunk?
>
>Thanks,
>Tamar
>
>contrib/
>2018-01-23  Tamar Christina  <tamar.christina@arm.com>
>
>	* dg-cmp-results.sh: Reject log files from comparison.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]