Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
blaar
blibs
blc_program
Commits
9c656034
Commit
9c656034
authored
May 23, 2019
by
Arnaud Blanchard
Browse files
Fix problem of ninja returning error when the program is already compiled
parent
62d14675
Changes
1
Show whitespace changes
Inline
Side-by-side
check.sh
View file @
9c656034
...
@@ -29,7 +29,7 @@ echo
...
@@ -29,7 +29,7 @@ echo
LOG
=
$(
mktemp
)
||
exit
1
LOG
=
$(
mktemp
)
||
exit
1
trap
'cat $LOG && rm -f "$LOG"'
EXIT INT HUP TERM
trap
'cat $LOG && rm -f "$LOG"'
EXIT INT HUP TERM
$blaar_dir
/compile.sh t_parse_args 2>&1>
$LOG
(
$blaar_dir
/compile.sh t_parse_args 2>&1>
$LOG
;
error
=
$?
;
test
$error
==
127
&&
echo
"already compiled"
||
exit
$error
)
$blaar_dir
/bin/t_parse_args
"arg1"
"arg2"
2> t_parse_args/test_result.log
$blaar_dir
/bin/t_parse_args
"arg1"
"arg2"
2> t_parse_args/test_result.log
git diff
--exit-code
t_parse_args/test_result.log
||
{
echo
"ERROR: The result of 't_parse_args' is not the one expected"
;
exit
3
;
}
git diff
--exit-code
t_parse_args/test_result.log
||
{
echo
"ERROR: The result of 't_parse_args' is not the one expected"
;
exit
3
;
}
echo
echo
...
...
Write
Preview
Supports
Markdown
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