File tree Expand file tree Collapse file tree 4 files changed +37
-2
lines changed
reference/async_reference Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 29
29
key : ${{runner.os}}-bazel-cache
30
30
- uses : actions/checkout@v3
31
31
- run : bazel test --config=ci //...
32
- - run : cd tests
33
32
- run : bazel test --config=ci //...
33
+ workspace-directory : tests
34
34
35
35
test-linux :
36
36
runs-on : ubuntu-latest
43
43
key : ${{runner.os}}-bazel-cache
44
44
- uses : actions/checkout@v3
45
45
- run : bazel test --config=ci //...
46
- - run : cd tests
47
46
- run : bazel test --config=ci //...
47
+ workspace-directory : tests
48
48
49
49
check-module-headers :
50
50
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ cc_library(
14
14
srcs = ["async_reference.cc" ],
15
15
hdrs = ["async_reference.hh" ],
16
16
copts = copts ,
17
+ linkstatic = True ,
17
18
visibility = ["//visibility:public" ],
18
19
deps = [
19
20
"//:async" ,
Original file line number Diff line number Diff line change @@ -86,3 +86,27 @@ http_archive(
86
86
load ("@hedron_compile_commands//:workspace_setup.bzl" , "hedron_compile_commands_setup" )
87
87
88
88
hedron_compile_commands_setup ()
89
+
90
+ http_archive (
91
+ name = "com_grail_bazel_toolchain" ,
92
+ sha256 = "3cf5ac4bb7dae3776da586fe85685274f5d89cbb59436f50f572928354e72198" ,
93
+ strip_prefix = "bazel-toolchain-70a0fb556662fe3cadb07da32c91e232eb0d883d" ,
94
+ url = "https://github.com/grailbio/bazel-toolchain/archive/70a0fb556662fe3cadb07da32c91e232eb0d883d.zip" ,
95
+ )
96
+
97
+ load ("@com_grail_bazel_toolchain//toolchain:deps.bzl" , "bazel_toolchain_dependencies" )
98
+
99
+ bazel_toolchain_dependencies ()
100
+
101
+ load ("@com_grail_bazel_toolchain//toolchain:rules.bzl" , "llvm_toolchain" )
102
+
103
+ llvm_toolchain (
104
+ name = "llvm_toolchain" ,
105
+ cxx_standard = {"linux" : "c++20" },
106
+ distribution = "clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz" ,
107
+ llvm_version = "15.0.6" ,
108
+ )
109
+
110
+ load ("@llvm_toolchain//:toolchains.bzl" , "llvm_register_toolchains" )
111
+
112
+ llvm_register_toolchains ()
Original file line number Diff line number Diff line change @@ -38,6 +38,15 @@ void assert_time_past(
38
38
ASSERT_LT (time, time_to_assert);
39
39
}
40
40
41
+ void assert_never_error (
42
+ ecsact_async_error async_err,
43
+ int request_ids_length,
44
+ ecsact_async_request_id* request_ids,
45
+ void * callback_user_data
46
+ ) {
47
+ ASSERT_TRUE (false ) << " Unexpected Ecsact Async Error" ;
48
+ }
49
+
41
50
TEST (AsyncRef, ConnectBad) {
42
51
auto connect_req_id = ecsact_async_connect (" bad" );
43
52
@@ -486,6 +495,7 @@ TEST(AsyncRef, TryAction) {
486
495
ecsact_async_events_collector entity_async_evc{};
487
496
entity_async_evc.async_entity_callback = entity_cb;
488
497
entity_async_evc.async_entity_callback_user_data = &cb_info;
498
+ entity_async_evc.async_error_callback = &assert_never_error;
489
499
490
500
auto start_tick = ecsact_async_get_current_tick ();
491
501
while (cb_info.wait != true ) {
You can’t perform that action at this time.
0 commit comments