-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flatbuffers failed to run tests on windows with MSVC #6838
Comments
Looking at the failures, it must be a problem with the dir you're running from.. it's supposed to be run from the root of the repo. If I do so, it works for me, both running |
@aardappel Thanks for your reply and info. According to your info, l have try change dir to root, run tests display "No tests were found!!!" Reproduce steps: Error info: |
well, no idea how your setup differs from mine then, since in my case it displays that all tests pass. |
This issue is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days. |
I had a same problem, and I solve the problem by running flattest from root of project,
|
You can chane --bfbs-filenames in compile_flatbuffers_schema_to_binary function in CMakeLists.txt to |
Hi All,
flatbuffers failed to run tests on windows with MSVC, this issue can be reproduced on latest version 47d35f1, can you help look?
Reproduce steps:
Test log:
run_test.log
Error info:
Test project E:/test0819/flatbuffers/build_amd64
Start 1: flattests
1/1 Test #1: flattests ........................***Failed 0.35 sec
EXPECTED: "//../../tests/monster_test.fbs"
VALUE: "//monster_test.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:934, 'root_table->declaration_file()->c_str()' != '"//monster_test.fbs"' in
EXPECTED: "//../../tests/include_test/include_test1.fbs"
VALUE: "//include_test/include_test1.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:937, 'schema.objects()->LookupByKey("TableA")->declaration_file()->c_str()' != '"//include_test/include_test1.fbs"' in
EXPECTED: "//../../tests/include_test/sub/include_test2.fbs"
VALUE: "//include_test/sub/include_test2.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:942, 'schema.objects() ->LookupByKey("MyGame.OtherNameSpace.Unused") ->declaration_file() ->c_str()' != '"//include_test/sub/include_test2.fbs"' in
EXPECTED: "//../../tests/include_test/sub/include_test2.fbs"
VALUE: "//include_test/sub/include_test2.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:947, 'schema.enums() ->LookupByKey("MyGame.OtherNameSpace.FromInclude") ->declaration_file() ->c_str()' != '"//include_test/sub/include_test2.fbs"' in
EXPECTED: "//../../tests/include_test/include_test1.fbs"
VALUE: "//include_test/include_test1.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:953, 'fbs0->filename()->c_str()' != '"//include_test/include_test1.fbs"' in
EXPECTED: "//../../tests/include_test/include_test1.fbs"
VALUE: "//include_test/include_test1.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:959, 'fbs0_includes->Get(0)->c_str()' != '"//include_test/include_test1.fbs"' in
EXPECTED: "//../../tests/include_test/sub/include_test2.fbs"
VALUE: "//include_test/sub/include_test2.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:961, 'fbs0_includes->Get(1)->c_str()' != '"//include_test/sub/include_test2.fbs"' in
EXPECTED: "//../../tests/include_test/sub/include_test2.fbs"
VALUE: "//include_test/sub/include_test2.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:965, 'fbs1->filename()->c_str()' != '"//include_test/sub/include_test2.fbs"' in
EXPECTED: "//../../tests/include_test/include_test1.fbs"
VALUE: "//include_test/include_test1.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:969, 'fbs1_includes->Get(0)->c_str()' != '"//include_test/include_test1.fbs"' in
EXPECTED: "//../../tests/include_test/sub/include_test2.fbs"
VALUE: "//include_test/sub/include_test2.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:971, 'fbs1_includes->Get(1)->c_str()' != '"//include_test/sub/include_test2.fbs"' in
EXPECTED: "//../../tests/monster_test.fbs"
VALUE: "//monster_test.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:974, 'fbs2->filename()->c_str()' != '"//monster_test.fbs"' in
EXPECTED: "//../../tests/include_test/include_test1.fbs"
VALUE: "//include_test/include_test1.fbs"
TEST FAILED: E:\test0819\flatbuffers\tests\test.cpp:978, 'fbs2_includes->Get(0)->c_str()' != '"//include_test/include_test1.fbs"' in
12 FAILED TESTS
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.38 sec
The following tests FAILED:
1 - flattests (Failed)
The text was updated successfully, but these errors were encountered: