Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83148

QTest skip test with incorrect (slot) name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.14.1
    • Fix Version/s: None
    • Component/s: Testing: qtestlib
    • Labels:
      None
    • Platform/s:
      Linux/X11, macOS

      Description

      • Minimal reproducible example in attachments
      • tested on Linux Mint 19 and macOS 10.15.4
      • order in slots isn't important.
      void auth_window_test_t::password_input_should_hide_echo_data(){
          qWarning() << "never called";
      }
      void auth_window_test_t::password_input_should_hide_echo_data__(){
          qInfo() << "called";
      }
      void auth_window_test_t::print_slots(){
           ...
          foreach(QString signature, slotSignatures){
              qInfo() << "Slot" << signature;
          }
      }
      
      Slot "password_input_should_hide_echo_data()"
      Slot "password_input_should_hide_echo_data__()"
      
      ********* Start testing of auth_window_test_t *********
      Config: Using QtTest library 5.12.7, Qt 5.12.7 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.0 (clang-1000.11.45.5) (Apple))
      PASS   : auth_window_test_t::initTestCase()
      QINFO  : auth_window_test_t::password_input_should_hide_echo_data__() called
      PASS   : auth_window_test_t::password_input_should_hide_echo_data__()
      PASS   : auth_window_test_t::cleanupTestCase()
      Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 1ms
      ********* Finished testing of auth_window_test_t *********
      

        Attachments

        1. auth_window_test.cpp
          0.9 kB
        2. auth_window_test.h
          0.3 kB
        3. main.cpp
          0.3 kB
        4. qt-bug-83148.log
          1 kB
        5. qt-bug-83148-mre.pro
          0.2 kB
        6. system_info.log
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            macadder Jason McDonald
            Reporter:
            n.bes n bes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes