Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
52ae9e35
Commit
52ae9e35
authored
Jul 22, 2020
by
Maxime Perrotin
Browse files
Test Get_State
parent
d04237be
Changes
2
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
52ae9e35
...
...
@@ -536,7 +536,7 @@ use Interfaces,
{
include_custom_types
}
{
imp_str
}
{
instance_decl
}
{
generic_spec
}
{
generic_spec
}
'''
.
strip
()
+
f
'''
package
{
process_name
}
with Elaborate_Body is'''
]
dll_api
=
[]
if
not
instance
:
...
...
tests/testsuite/test-simu/test_ada.c
View file @
52ae9e35
...
...
@@ -3,6 +3,10 @@
#include
"dataview-uniq.h"
extern
void
adainit
();
extern
void
orchestrator_startup
();
extern
void
orchestrator_PI_other
();
extern
void
orchestrator_PI_Paramless_TC
();
extern
char
*
orchestrator_state
();
void
orchestrator_RI_peek_list
(
void
*
_
)
{}
void
orchestrator_RI_peek_fixed
(
void
*
_
)
{}
void
orchestrator_RI_telemetry
(
void
*
_
){}
...
...
@@ -15,7 +19,13 @@ int main()
int
i
;
printf
(
"[C Code] Running test
\n
"
);
adainit
();
orchestrator_startup
();
toto
=
fixed_value
();
printf
(
"%s
\n
"
,
orchestrator_state
());
orchestrator_PI_other
();
printf
(
"%s
\n
"
,
orchestrator_state
());
orchestrator_PI_other
();
printf
(
"%s
\n
"
,
orchestrator_state
());
// size = fixed_size();
// printf("Size=%d\n", size);
// for (i = 0; i<size; i++) printf("%d", toto[i]);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment