From fe2742014af5a4a1f306cc3f1ee5d3e5be7ed64c Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Thu, 10 Mar 2016 12:01:57 +0100 Subject: media-libs/libopenshot: new ebuild, version 0.1.0 Needed for media-video/openshot-2.0.6 Package-Manager: portage-2.2.27 Closes: https://github.com/gentoo/gentoo/pull/1023 --- .../libopenshot-0.1.0-fix-tests-exit-code.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 media-libs/libopenshot/files/libopenshot-0.1.0-fix-tests-exit-code.patch (limited to 'media-libs/libopenshot/files') diff --git a/media-libs/libopenshot/files/libopenshot-0.1.0-fix-tests-exit-code.patch b/media-libs/libopenshot/files/libopenshot-0.1.0-fix-tests-exit-code.patch new file mode 100644 index 000000000000..ba6cb8ed5a82 --- /dev/null +++ b/media-libs/libopenshot/files/libopenshot-0.1.0-fix-tests-exit-code.patch @@ -0,0 +1,31 @@ +From c7dcc18b23e6bfeff8c37f542b37b081bc422f9b Mon Sep 17 00:00:00 2001 +From: Louis Sautier +Date: Tue, 15 Mar 2016 00:35:16 +0100 +Subject: [PATCH] Exit tests with the return value from RunAllTests() + +--- + tests/tests.cpp | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/tests/tests.cpp b/tests/tests.cpp +index 5265959..2321513 100644 +--- a/tests/tests.cpp ++++ b/tests/tests.cpp +@@ -33,14 +33,15 @@ using namespace UnitTest; + + int main() + { ++ int exit_code = 0; + cout << "----------------------------" << endl; + cout << " RUNNING ALL TESTS" << endl; + cout << "----------------------------" << endl; + + // Run all unit tests +- RunAllTests(); ++ exit_code = RunAllTests(); + + cout << "----------------------------" << endl; + +- return 0; ++ return exit_code; + } -- cgit v1.2.3-65-gdbad