]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/dokan: avoid runtime dependent assertion
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 24 Apr 2023 14:36:43 +0000 (14:36 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 30 Aug 2023 12:59:00 +0000 (12:59 +0000)
commit82ef35db701cdf16a606522504cc1b4ea18e38ce
tree13e1788e2288bd9fabc18cfcae909152fb1e9f54
parent0a5641d196e6d98faec895d60db84c73cc3a4ff0
test/dokan: avoid runtime dependent assertion

We're checking a permission denied exception message that's
runtime specific:

  /mnt/data/workspace/ceph_mingw_clang/src/test/dokan/dokan.cc:252: Failure
  Expected equality of these values:
    e.what()
      Which is: "filesystem error: in remove: Permission denied
      [\"Z:\\ro_success_b76223c4-c590-45e0-ab78-4d281ac512b5\"]"
    exception_msg.c_str()
      Which is: "filesystem error: cannot remove: No such device
      [Z:\\ro_success_b76223c4-c590-45e0-ab78-4d281ac512b5]"

In order to support libc++, we'll drop the exception message
assertion and rely on the exception type.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/test/dokan/dokan.cc