[njs] Fixed the unit test's output format for a failed test.

Dmitry Volyntsev xeioex at nginx.com
Tue Feb 27 11:18:06 UTC 2018


details:   http://hg.nginx.org/njs/rev/0f1c3efcd894
branches:  
changeset: 452:0f1c3efcd894
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Tue Feb 27 14:11:00 2018 +0300
description:
Fixed the unit test's output format for a failed test.

diffstat:

 njs/test/njs_unit_test.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r ee00992356d9 -r 0f1c3efcd894 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c	Tue Feb 27 14:10:36 2018 +0300
+++ b/njs/test/njs_unit_test.c	Tue Feb 27 14:11:00 2018 +0300
@@ -9466,8 +9466,8 @@ njs_unit_test(nxt_bool_t disassemble, nx
 
         printf("njs(\"%.*s\")\nexpected: \"%.*s\"\n     got: \"%.*s\"\n",
                (int) njs_test[i].script.length, njs_test[i].script.start,
-               (int) s.length, s.start, (int) njs_test[i].ret.length,
-               njs_test[i].ret.start);
+               (int) njs_test[i].ret.length, njs_test[i].ret.start,
+               (int) s.length, s.start);
 
         goto done;
     }


More information about the nginx-devel mailing list