Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdenlive
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Akhil K Gangadharan
kdenlive
Commits
c4f94791
Commit
c4f94791
authored
Apr 21, 2019
by
Nicolas Carion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes in tests
parent
bd22dce8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
tests/CMakeLists.txt
tests/CMakeLists.txt
+2
-1
tests/abortutil.cpp
tests/abortutil.cpp
+11
-0
tests/abortutil.hpp
tests/abortutil.hpp
+2
-7
No files found.
tests/CMakeLists.txt
View file @
c4f94791
...
@@ -7,6 +7,7 @@ string (REPLACE "-std=gnu++11" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
...
@@ -7,6 +7,7 @@ string (REPLACE "-std=gnu++11" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
SET
(
Tests_SRCS
SET
(
Tests_SRCS
tests/TestMain.cpp
tests/TestMain.cpp
tests/abortutil.cpp
tests/compositiontest.cpp
tests/compositiontest.cpp
tests/effectstest.cpp
tests/effectstest.cpp
tests/groupstest.cpp
tests/groupstest.cpp
...
@@ -17,8 +18,8 @@ SET(Tests_SRCS
...
@@ -17,8 +18,8 @@ SET(Tests_SRCS
tests/snaptest.cpp
tests/snaptest.cpp
tests/test_utils.cpp
tests/test_utils.cpp
tests/timewarptest.cpp
tests/timewarptest.cpp
tests/trimmingtest.cpp
tests/treetest.cpp
tests/treetest.cpp
tests/trimmingtest.cpp
PARENT_SCOPE
PARENT_SCOPE
)
)
...
...
tests/abortutil.cpp
0 → 100644
View file @
c4f94791
#include "abortutil.hpp"
#ifdef __linux__
void
Disable_Console_Output
()
{
// close C file descriptors
fclose
(
stdout
);
fclose
(
stderr
);
}
#endif
tests/abortutil.hpp
View file @
c4f94791
...
@@ -44,12 +44,7 @@ template <class F, class... ArgTypes> decltype(auto) invoke(F &&f, ArgTypes &&..
...
@@ -44,12 +44,7 @@ template <class F, class... ArgTypes> decltype(auto) invoke(F &&f, ArgTypes &&..
}
}
}
// namespace util
}
// namespace util
void
Disable_Console_Output
()
void
Disable_Console_Output
();
{
// close C file descriptors
fclose
(
stdout
);
fclose
(
stderr
);
}
template
<
class
F
,
class
...
Args
>
bool
ABORTS
(
F
&&
f
,
Args
&&
...
args
)
template
<
class
F
,
class
...
Args
>
bool
ABORTS
(
F
&&
f
,
Args
&&
...
args
)
{
{
...
@@ -85,7 +80,7 @@ template <class F, class... Args> bool ABORTS(F &&f, Args &&... args)
...
@@ -85,7 +80,7 @@ template <class F, class... Args> bool ABORTS(F &&f, Args &&... args)
}
}
}
}
return
true
;
return
aborted
;
}
}
#else
#else
template
<
class
F
,
class
...
Args
>
bool
ABORTS
(
F
&&
,
Args
&&
...)
template
<
class
F
,
class
...
Args
>
bool
ABORTS
(
F
&&
,
Args
&&
...)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment