Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libfortran-support
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libfortran-support
Commits
19bb9d1b
Commit
19bb9d1b
authored
1 year ago
by
Jonas Jucker
Browse files
Options
Downloads
Patches
Plain Diff
format
parent
ce2f8128
No related branches found
No related tags found
1 merge request
!46
Test util_backtrace
Pipeline
#50969
passed
1 year ago
Stage: lint
Stage: build
Stage: build_and_test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/c/ctest_util_backtrace.cpp
+5
-4
5 additions, 4 deletions
test/c/ctest_util_backtrace.cpp
with
5 additions
and
4 deletions
test/c/ctest_util_backtrace.cpp
+
5
−
4
View file @
19bb9d1b
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
#include
<util_backtrace.h>
#include
<util_backtrace.h>
class
UtilBacktraceCTest
:
public
::
testing
::
Test
{
class
UtilBacktraceCTest
:
public
::
testing
::
Test
{
protected:
protected:
static
bool
ContainsSubstring
(
const
std
::
string
&
str
,
const
std
::
string
&
substr
)
{
static
bool
ContainsSubstring
(
const
std
::
string
&
str
,
const
std
::
string
&
substr
)
{
return
str
.
find
(
substr
)
!=
std
::
string
::
npos
;
return
str
.
find
(
substr
)
!=
std
::
string
::
npos
;
}
}
};
};
...
@@ -21,6 +22,6 @@ TEST_F(UtilBacktraceCTest, PrintsCorrectBacktrace) {
...
@@ -21,6 +22,6 @@ TEST_F(UtilBacktraceCTest, PrintsCorrectBacktrace) {
std
::
string
output
=
testing
::
internal
::
GetCapturedStdout
();
std
::
string
output
=
testing
::
internal
::
GetCapturedStdout
();
EXPECT_PRED2
(
ContainsSubstring
,
output
,
"util_backtrace"
);
EXPECT_PRED2
(
ContainsSubstring
,
output
,
"util_backtrace"
);
EXPECT_PRED2
(
ContainsSubstring
,
output
,
"libfortran-support"
);
EXPECT_PRED2
(
ContainsSubstring
,
output
,
"libfortran-support"
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment