Skip to content

Commit 3e8dccb

Browse files
committed
Try adding a src file to platform constraint tests to see if that fixes macos
1 parent 990af72 commit 3e8dccb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

tests/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ cc_library(
176176
cc_test(
177177
name = "test_cxx_standard_is_17",
178178
size = "small",
179+
srcs = ["test_cxx_standard_main.cc"],
179180
args = ["201703"],
180181
deps = [":test_cxx_standard_lib"],
181182
)
@@ -189,6 +190,7 @@ transition_library_to_platform(
189190
cc_test(
190191
name = "test_cxx_standard_is_20",
191192
size = "small",
193+
srcs = ["test_cxx_standard_main.cc"],
192194
args = ["202002"],
193195
deps = [":test_cxx_standard_lib_transitioned"],
194196
)

tests/test_cxx_standard.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <iostream>
22
#include <cstdlib>
33

4-
int main(int argc, char** argv) {
4+
int run_test(int argc, char** argv) {
55
if (argc != 2) {
66
std::cout << "Not enough arguments" << std::endl;
77
return 1;
@@ -19,4 +19,4 @@ int main(int argc, char** argv) {
1919
return 1;
2020
}
2121
return 0;
22-
}
22+
}

tests/test_cxx_standard_main.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
int run_test(int argc, char** argv);
2+
3+
int main(int argc, char** argv) {
4+
return run_test(argc, argv);
5+
}

0 commit comments

Comments
 (0)