Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
P
pia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
J.J. Green
pia
Commits
7008d4b0
Commit
7008d4b0
authored
Jun 12, 2018
by
J.J. Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add compatibility header
parent
5280a675
Pipeline
#23734787
passed with stage
in 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
test/cunit_compat.h
test/cunit_compat.h
+30
-0
test/tests.c
test/tests.c
+2
-1
No files found.
test/cunit_compat.h
0 → 100644
View file @
7008d4b0
/*
cunit_compat.h
Compatibility macros to handle different versions of CUnit,
in particular the changes to the suite struct introduced in
version 2.1-3
Copyright (c) J.J. Green 2016
*/
#ifndef CUNIT_COMPAT_H
#define CUNIT_COMPAT_H
/* default to 2.1-3 or later */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef CUNIT_213
#define CUNIT_213 1
#endif
#if CUNIT_213
#define CU_Suite_Entry(a, b, c, d) {(a), (b), (c), NULL, NULL, (d)}
#else
#define CU_Suite_Entry(a, b, c, d) {(a), (b), (c), (d)}
#endif
#endif
test/tests.c
View file @
7008d4b0
...
...
@@ -11,11 +11,12 @@
#include <CUnit/CUnit.h>
#include "cunit_compat.h"
#include "tests_pia.h"
static
CU_SuiteInfo
suites
[]
=
{
{
"pia"
,
NULL
,
NULL
,
tests_pia
}
,
CU_Suite_Entry
(
"pia"
,
NULL
,
NULL
,
tests_pia
)
,
CU_SUITE_INFO_NULL
,
};
...
...
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