Skip to content

Commit

Permalink
Merge pull request #7074 from JohanEngelen/lexertestfix
Browse files Browse the repository at this point in the history
Gag errors during testing Lexer with malformed input.
merged-on-behalf-of: Iain Buclaw <ibuclaw@gdcproject.org>
  • Loading branch information
dlang-bot committed Aug 9, 2017
2 parents e1e6814 + ad599a5 commit 4257ab4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ddmd/lexer.d
Expand Up @@ -147,6 +147,10 @@ unittest

unittest
{
// We don't want to see Lexer error output during these tests.
uint errors = global.startGagging();
scope(exit) global.endGagging(errors);

// Test malformed input: even malformed input should end in a TOKeof.
static immutable char[][] testcases =
[ // Testcase must end with 0 or 0x1A.
Expand Down

0 comments on commit 4257ab4

Please sign in to comment.