From 7eec899130edd40fee93153117b15639d68c8f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 15 Oct 2019 01:13:21 -0500 Subject: [PATCH] Reimplement test_EclipseIO in Terms of TimeStampUTC Mostly just to provide a simple overload of the utility function ecl_util_make_date from libecl. The rest of the test code remains intact. --- tests/test_EclipseIO.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_EclipseIO.cpp b/tests/test_EclipseIO.cpp index 8cf6b0e8f..29e040ebe 100644 --- a/tests/test_EclipseIO.cpp +++ b/tests/test_EclipseIO.cpp @@ -39,6 +39,8 @@ #include #include +#include + #include #include #include @@ -48,8 +50,6 @@ #include -#include - #include using namespace Opm; @@ -224,6 +224,12 @@ void checkRestartFile( int timeStepIdx ) { } } +time_t ecl_util_make_date( const int day, const int month, const int year ) +{ + const auto ymd = Opm::TimeStampUTC::YMD{ year, month, day }; + return static_cast(asTimeT(Opm::TimeStampUTC{ymd})); +} + } // Anonymous namespace BOOST_AUTO_TEST_CASE(EclipseIOIntegration) {