Uploaded image for project: 'Couchbase Mobile'
  1. Couchbase Mobile
  2. CM-952

test_auto_purge_with_pull_filtering[enabled] C-platform testserver app need to set log location properly

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • CouchbaseLite
    • None

    Description

      test_auto_purge_with_pull_filtering[enabled] fails with error:

      FileNotFoundError: [Errno 2] No such file or directory: '/tmp/cbl-logs/log_1641339715230'

      the actual log has been stored under '/tmp/log_1641339715230' and FileLoggingMethods.cpp has implementation of:
      #ifdef _APPLE_
      extern string LogTempDirectory();
      #else
      static string LogTempDirectory()

      { #ifdef _MSC_VER WCHAR pathBuffer[MAX_PATH + 1]; GetTempPathW(MAX_PATH, pathBuffer); GetLongPathNameW(pathBuffer, pathBuffer, MAX_PATH); CW2AEX<256> convertedPath(pathBuffer, CP_UTF8); return string(convertedPath.m_psz); #elif defined(__ANDROID__) return GlobalApp->activity->internalDataPath; #else *return "/tmp"*; #endif }

      #endif

      Need to fix the testserver C implementation to store logs in the designated location, or for C platform, change the log pulling location to meet the current implementation

      Attachments

        Activity

          People

            eunice.huang Eunice Huang (Inactive)
            eunice.huang Eunice Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              PagerDuty