Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-662

Failing unit tests for guacamole-server not triggering build failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • guacamole-server
    • None

    Description

      The unit test for the "nest" instruction (hopefully soon to be deprecated via GUACAMOLE-661) has been failing. Assuming the failure is legitimate, it hasn't been a problem in practice since the "nest" instruction has been unused for some time, but the fact that this failure has gone unnoticed is troubling. The build results currently show the following for make check:

      ...
      PASS: test_libguac
      ============================================================================
      Testsuite summary for guacamole-server 1.0.0
      ============================================================================
      # TOTAL: 1
      # PASS:  1
      # SKIP:  0
      # XFAIL: 0
      # FAIL:  0
      # XPASS: 0
      # ERROR: 0
      ============================================================================
      ...
      

      The test log within tests/test_libguac.log contradicts this, showing that there is actually a test failure (not to mention more than one test total):

      
      
           CUnit - A unit testing framework for C - Version 2.1-3
           http://cunit.sourceforge.net/
      
      
      Suite: protocol
        Test: base64-decode ...passed
        Test: instruction-parse ...passed
        Test: instruction-read ...passed
        Test: instruction-write ...passed
        Test: nest-write ...FAILED
          1. protocol/nest_write.c:104  - CU_ASSERT_STRING_EQUAL(buffer,expected)
      Suite: client
        Test: layer-pool ...passed
        Test: buffer-pool ...passed
      Suite: util
        Test: guac-pool ...passed
        Test: guac-unicode ...passed
      
      Run Summary:    Type  Total    Ran Passed Failed Inactive
                    suites      3      3    n/a      0        0
                     tests      9      9      8      1        0
                   asserts  11091  11091  11090      1      n/a
      
      Elapsed time =   -0.006 seconds
      

      If "nest" is truly not behaving correctly, it should be corrected. If "nest" is correct but the test is wrong, the test should be fixed. Most importantly, the testing portion of the build process should be corrected such that:

      1. The test report actually captures the correct number of tests passing and test failures.
      2. A failing test fails the build.

      Attachments

        Issue Links

          Activity

            People

              mjumper Mike Jumper
              mjumper Mike Jumper
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: