Uploaded image for project: 'Qt License server'
  1. Qt License server
  2. QLS-558

qtlicensetool.exe returns non-zero exit code on succesful long-term reservation

    XMLWordPrintable

Details

    • fc60b0e9a (dev), c66944c67 (2.1)
    • License server development 9

    Description

       

      Found out following behaviour on Windows 11:

      # In powershell, $? returns boolean representing the fact if last exit code was 0
      # Last exit code is also stored in $LastExitCode env variable
      
      PS C:\Program Files\qtlicd> .\qtlicensetool.exe --permanent add
      Success. Long-term reservation cb7e45ea-505f-4123-acb2-b5aacaf2276d created for user testuser. Expiry date: 2024-03-31. License ID: 10950891
      PS C:\Program Files\qtlicd> $?
      False
      PS C:\Program Files\qtlicd> code test.txt
      PS C:\Program Files\qtlicd> $?
      True
      PS C:\Program Files\qtlicd> $LastExitCode
      0
      PS C:\Program Files\qtlicd> .\qtlicensetool.exe --permanent add
      Success. Long-term reservation b5de7f11-cdf8-4b67-a6c5-0d649e2074b1 created for user testuser. Expiry date: 2024-03-31. License ID: 10950891
      PS C:\Program Files\qtlicd> $LastExitCode
      1 

      Exit code should be 0, not 1.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            arttu.tarkiainen Arttu Tarkiainen
            iikkak Iikka Konola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes