Skip to content

Commit c93ca00

Browse files
committed
WasmEdge: Fix the runtime name string.
Signed-off-by: YiYing He <[email protected]>
1 parent 8da3a84 commit c93ca00

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
strategy:
6666
fail-fast: false
6767
matrix:
68-
runtime: ["wamr", "wasmtime", "wavm", "WasmEdge"]
68+
runtime: ["wamr", "wasmedge", "wasmtime", "wavm"]
6969

7070
steps:
7171
- uses: actions/checkout@v2

src/wasmedge/wasmedge.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class WasmEdge : public WasmVm {
261261
memory_ = nullptr;
262262
}
263263

264-
std::string_view runtime() override { return "WasmEdge"; }
264+
std::string_view runtime() override { return "wasmedge"; }
265265
std::string_view getPrecompiledSectionName() override { return ""; }
266266

267267
Cloneable cloneable() override { return Cloneable::NotCloneable; }

test/runtime_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ auto test_values = testing::ValuesIn(getRuntimes());
3434
INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values);
3535

3636
TEST_P(TestVM, Basic) {
37-
if (runtime_ == "wamr" || runtime_ == "WasmEdge") {
37+
if (runtime_ == "wamr" || runtime_ == "wasmedge") {
3838
EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable);
3939
} else if (runtime_ == "wasmtime" || runtime_ == "v8") {
4040
EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode);

test/utility.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ std::vector<std::string> getRuntimes() {
2828
"wasmtime",
2929
#endif
3030
#if defined(PROXY_WASM_HAS_RUNTIME_WASMEDGE)
31-
"WasmEdge",
31+
"wasmedge",
3232
#endif
3333
#if defined(PROXY_WASM_HAS_RUNTIME_WAMR)
3434
"wamr",

test/utility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class TestVM : public testing::TestWithParam<std::string> {
9292
vm = proxy_wasm::createWasmtimeVm();
9393
#endif
9494
#if defined(PROXY_WASM_HAS_RUNTIME_WASMEDGE)
95-
} else if (runtime_ == "WasmEdge") {
95+
} else if (runtime_ == "wasmedge") {
9696
vm = proxy_wasm::createWasmEdgeVm();
9797
#endif
9898
#if defined(PROXY_WASM_HAS_RUNTIME_WAMR)

0 commit comments

Comments
 (0)