Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1573

DroolsMvelParserTest fails due to line endings \r\n on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.11.0.GA
    • 7.10.0.GA, 7.10.1.GA, 7.11.0.GA
    • BRE
    • None
    • Failure detected on certification matrix nightly tests on Jenkins with Windows 2016.
      openjdk8, oracle jdk1.8 or openjdk11.

      Reproduced locally with Windows 2010 and oracle jdk15.

    • False
    • False
    • CR1
    • -
    • Undefined
    • Hide

      Run org.drools.mvel.parser.DroolsMvelParserTest#testSpecialNewlineHandling on Windows.

      Show
      Run org.drools.mvel.parser.DroolsMvelParserTest#testSpecialNewlineHandling on Windows.
    • 2021 Week 04-06 (from Jan 25), 2021 Week 07-09 (from Feb 15), 2021 Week 10-12 (from Mar 8)

    Description

      Test added by DROOLS-5879 (Optional newline handling in MVEL parser - see commit [1]) fails when executed in an environment with Windows OS.

      [1] https://github.com/kiegroup/drools/commit/e37605f2b77b0714ea3018684eef85934ba2e5de

      Contents have differences only in line separators.

      08:47:48 [INFO]
      08:47:48 [INFO] Results:
      08:47:48 [INFO]
      08:47:48 [ERROR] Failures:
      08:47:48 [ERROR] DroolsMvelParserTest.testSpecialNewlineHandling:914 There should be 2 statements expected:<

      {[ 08:47:48 a(); 08:47:48 print(1);] 08:47:48 }

      > but was:<{[
      08:47:48 a();
      08:47:48 print(1);
      ]

      Attachments

        Issue Links

          Activity

            People

              evacchi Edoardo Vacchi (Inactive)
              drosabrno Daniel Rosa
              Daniel Rosa Daniel Rosa
              Daniel Rosa Daniel Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: