Skip to content

Commit 0d62fbf

Browse files
michaelhixsonNateBrady23
authored andcommitted
Fix silicon json test output, fix to fix new installations (#3226)
The output from silicon's json endpoint was missing quotes around a value, so it was failing the tests: {"message":Hello, World!} I changed the code to look more like the hello world example on the silicon website, and that made it pass tests locally. http://siliconframework.org/docs/hello_world.html Before I could do that, I had to tweak the silicon installer to depend on a later version of gcc, or else the silicon installer would fail and so would all of the test types.
1 parent 70df96d commit 0d62fbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frameworks/C++/silicon/techempower.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ auto techempower_api = http_api(
4545
_body = string_ref("Hello, World!")); },
4646

4747
GET / _json = [] () { return response(_content_type = string_ref("application/json"),
48-
_body = D(_message = string_ref("Hello, World!"))); },
48+
_body = D(_message = "Hello, World!")); },
4949

5050
GET / _db = [] (rn_orm& orm) {
5151
random_number r;

toolset/setup/linux/frameworks/silicon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
fw_depends libboost-dev clang-3.9 gcc-4.9
3+
fw_depends libboost-dev clang-3.9 gcc-6
44

55
fw_installed silicon && return 0
66

0 commit comments

Comments
 (0)