~dobey/unity-api/add-simple-logger

« back to all changes in this revision

Viewing changes to test/gtest/unity/util/FileIO/FileIO_test.cpp

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2013-12-17 01:48:32 UTC
  • mfrom: (113.2.6 what-fix)
  • Revision ID: tarmac-20131217014832-76rm9a4d3127zhxv
  Changed unity::Exception to return the same string as to_string(). This means that it is no longer necessary
  to treat unity::Exception differently from std::exception for structured exception handling: catching std::exception
  will catch unity::Exception as well, and call what() produces the correct result. The pointer returned from what()
  remains valid until the next call to what(), or until the exception is destroyed.
  
  Added deep-copy semantics for exceptions.
  
  Removed pimpling of unity::Exception, so there is no longer a class called ExceptionImplBase. Pimpling with
  inheritance and deep-copy just gets too messy and confusing.

Approved by James Henstridge, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    }
77
77
    catch (FileException const& e)
78
78
    {
79
 
        EXPECT_EQ("unity::FileException: \"testdir\" is not a regular file", e.to_string());
 
79
        EXPECT_EQ("unity::FileException: \"testdir\" is not a regular file (errno = 0)", e.to_string());
80
80
    }
81
81
}