• Ralf W. Grosse-Kunstleve's avatar
    Copying tests as-is from xxx_value_ptr_xxx_holder branch. · a923419e
    Ralf W. Grosse-Kunstleve authored
    https://github.com/rwgk/pybind11/tree/xxx_value_ptr_xxx_holder
    
    Systematically exercising returning and passing unique_ptr<T>, shared_ptr<T>
    with unique_ptr, shared_ptr holder.
    
    Observations:
    
    test_holder_unique_ptr:
      make_unique_pointee  OK
      pass_unique_pointee  BUILD_FAIL (as documented)
      make_shared_pointee  Abort free(): double free detected
      pass_shared_pointee  RuntimeError: Unable to load a custom holder type from a default-holder instance
    
    test_holder_shared_ptr:
      make_unique_pointee  Segmentation fault (#1138)
      pass_unique_pointee  BUILD_FAIL (as documented)
      make_shared_pointee  OK
      pass_shared_pointee  OK
    a923419e
test_holder_shared_ptr.cpp 1.73 KB