Remove C-specific cpp_basic_global_var_built_in unit test
There is no need for it, the common global_vars unit test is more extensive and passes too now.
This commit is contained in:
parent
97fc60ef51
commit
75d9cb4769
4 changed files with 12 additions and 19 deletions
|
|
@ -19,7 +19,6 @@ CPP_TEST_CASES := \
|
|||
cpp_basic_class_virtual_method \
|
||||
cpp_basic_class_var_pub_member_built_in \
|
||||
cpp_basic_class_var_pub_member_class \
|
||||
cpp_basic_global_var_built_in \
|
||||
cpp_basic_global_var_class \
|
||||
cpp_basic_namespaced_class \
|
||||
cpp_basic_template_function \
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
#include <assert.h>
|
||||
#include "cpp_basic_global_var_built_in/cpp_basic_global_var_built_in_wrap.h"
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
assert(myGlobalInt == 42);
|
||||
|
||||
myGlobalInt = 4711;
|
||||
|
||||
assert(myGlobalInt == 4711);
|
||||
|
||||
return 0;
|
||||
}
|
||||
12
Examples/test-suite/c/global_vars_runme.c
Normal file
12
Examples/test-suite/c/global_vars_runme.c
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include <assert.h>
|
||||
#include "global_vars/global_vars_wrap.h"
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
init();
|
||||
|
||||
assert(strcmp(b_get(), "string b") == 0);
|
||||
assert(x == 1234);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
%module cpp_basic_global_var_atom
|
||||
|
||||
%inline {
|
||||
int myGlobalInt = 42;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue