File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -130,3 +130,29 @@ jobs:
130
130
- name : Lint CC
131
131
run : |
132
132
tools/check_tidy.py --filter=$(paste -sd, tools/lint-filters.txt)
133
+
134
+ embedtest :
135
+ runs-on : ubuntu-20.04
136
+ timeout-minutes : 30
137
+ strategy :
138
+ fail-fast : false
139
+ steps :
140
+ - name : Checkout source
141
+ uses : actions/checkout@v2
142
+ with :
143
+ submodules : true
144
+ - name : Checkout Escargot
145
+ run : |
146
+ pushd deps/escargot
147
+ git submodule update --init third_party
148
+ popd
149
+ - name : Install Packages
150
+ run : |
151
+ sudo apt update
152
+ sudo apt install -y ninja-build gcc-multilib g++-multilib sed
153
+ - name : Build liblwnode and embedtest
154
+ run : |
155
+ tools/build-embedtest.sh
156
+ - name : Run embedtest
157
+ run : |
158
+ out/linux/Release/embedtest.x
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class StackTrace {
48
48
bool hasStackValue () { return stackValue_ != nullptr ; }
49
49
50
50
void * operator new (size_t size) { return GC_MALLOC (size); }
51
+ void operator delete (void * ptr) { GC_FREE (ptr); }
51
52
52
53
private:
53
54
ArrayObjectRef* stackTrace_ = nullptr ;
Original file line number Diff line number Diff line change 23
23
24
24
#define __FUNCTION_NAME__ getPrettyFunctionName (__PRETTY_FUNCTION__)
25
25
26
+ #ifndef __CODE_LOCATION__
26
27
#define __CODE_LOCATION__ \
27
28
createCodeLocation (__PRETTY_FUNCTION__, __FILE_NAME__, __LINE__).c_str()
29
+ #endif
28
30
29
31
std::string createCodeLocation (const char * functionName,
30
32
const char * filename,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ project(embedtest)
4
4
5
5
include_directories ("../../include/lwnode" )
6
6
link_libraries (lwnode )
7
+ add_compile_options (-std=c++17 )
7
8
8
9
if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
9
10
add_compile_options (-O2 -g )
You can’t perform that action at this time.
0 commit comments