aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-16 15:33:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:22 +0200
commit08aba2ee7cf407c9c25233ebbf43d0310e0f1b5e (patch)
tree15eebf82193771fb20995c7c0c1665a455077d3a
parent4230333bc5b32d30e35264b1104240bb5e2247ff (diff)
Fix bug in testscript lexer
-rw-r--r--build2/test/script/lexer.cxx1
-rw-r--r--unit-tests/test/script/lexer/script-line.test1
2 files changed, 2 insertions, 0 deletions
diff --git a/build2/test/script/lexer.cxx b/build2/test/script/lexer.cxx
index 4d57fe4..008223c 100644
--- a/build2/test/script/lexer.cxx
+++ b/build2/test/script/lexer.cxx
@@ -73,6 +73,7 @@ namespace build2
// Disable pair separator.
//
base_lexer::mode (m, '\0');
+ return;
}
}
diff --git a/unit-tests/test/script/lexer/script-line.test b/unit-tests/test/script/lexer/script-line.test
index f03c3bb..fcde40b 100644
--- a/unit-tests/test/script/lexer/script-line.test
+++ b/unit-tests/test/script/lexer/script-line.test
@@ -16,3 +16,4 @@ test.options += --foo
$1
test.arguments += bar
$2
+($3 == [null])