Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
02336bbc
Commit
02336bbc
authored
May 28, 2009
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Joey's template fixes.
parent
503dbd59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
tools/ccanlint/has_tests.c
tools/ccanlint/has_tests.c
+4
-3
tools/ccanlint/no_info.c
tools/ccanlint/no_info.c
+1
-1
No files found.
tools/ccanlint/has_tests.c
View file @
02336bbc
...
@@ -97,9 +97,9 @@ static void handle_no_tests(struct manifest *m, void *check_result)
...
@@ -97,9 +97,9 @@ static void handle_no_tests(struct manifest *m, void *check_result)
fputs
(
"#include
\"
tap/tap.h
\"\n
"
,
run
);
fputs
(
"#include
\"
tap/tap.h
\"\n
"
,
run
);
fputs
(
"
\n
"
,
run
);
fputs
(
"
\n
"
,
run
);
fputs
(
"int main(
int argc, char *argv[]
)
\n
"
,
run
);
fputs
(
"int main(
void
)
\n
"
,
run
);
fputs
(
"{
\n
"
,
run
);
fputs
(
"{
\n
"
,
run
);
fputs
(
"
\t
/* This is how many tests you plan to run
\n
"
,
run
);
fputs
(
"
\t
/* This is how many tests you plan to run
*/
\n
"
,
run
);
fputs
(
"
\t
plan_tests(3);
\n
"
,
run
);
fputs
(
"
\t
plan_tests(3);
\n
"
,
run
);
fputs
(
"
\n
"
,
run
);
fputs
(
"
\n
"
,
run
);
fputs
(
"
\t
/* Simple thing we expect to succeed */
\n
"
,
run
);
fputs
(
"
\t
/* Simple thing we expect to succeed */
\n
"
,
run
);
...
@@ -116,7 +116,8 @@ static void handle_no_tests(struct manifest *m, void *check_result)
...
@@ -116,7 +116,8 @@ static void handle_no_tests(struct manifest *m, void *check_result)
fputs
(
"#endif
\n
"
,
run
);
fputs
(
"#endif
\n
"
,
run
);
fputs
(
"
\n
"
,
run
);
fputs
(
"
\n
"
,
run
);
fputs
(
"
\t
/* This exits depending on whether all tests passed */
\n
"
,
run
);
fputs
(
"
\t
/* This exits depending on whether all tests passed */
\n
"
,
run
);
fputs
(
"
\r
eturn exit_status()
\n
"
,
run
);
fputs
(
"
\t
return exit_status();
\n
"
,
run
);
fputs
(
"}
\n
"
,
run
);
fclose
(
run
);
fclose
(
run
);
}
}
...
...
tools/ccanlint/no_info.c
View file @
02336bbc
...
@@ -40,7 +40,7 @@ static const char template[] =
...
@@ -40,7 +40,7 @@ static const char template[] =
" */
\n
"
" */
\n
"
"int main(int argc, char *argv[])
\n
"
"int main(int argc, char *argv[])
\n
"
"{
\n
"
"{
\n
"
" /* Expect exactly one argument
\n
"
" /* Expect exactly one argument
*/
\n
"
" if (argc != 2)
\n
"
" if (argc != 2)
\n
"
" return 1;
\n
"
" return 1;
\n
"
"
\n
"
"
\n
"
...
...
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