Skip to content
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

The strange 'TEST EXECUTE FAILED' only on iOS #10

Open
SergeyJames opened this issue May 24, 2022 · 0 comments
Open

The strange 'TEST EXECUTE FAILED' only on iOS #10

SergeyJames opened this issue May 24, 2022 · 0 comments

Comments

@SergeyJames
Copy link

In license_test.cpp only one test. And it looks lie this:

TEST(Test, License) {
#if !defined(WITH_LICENSE)
	GTEST_SKIP();
#else
	checkLicense();
#endif
}

In case, if the macro WITH_LICENSE is not defined.

On Linux (android and windows), I am observing something like this:

[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from Test
[ RUN      ] Test.License
[  SKIPPED ] Test.License (0 ms)
[----------] 1 test from Test (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (0 ms total)
[  PASSED  ] 0 tests.
[  SKIPPED ] 1 test, listed below:
[  SKIPPED ] Test.License

But on iOS (iOS 13.4 Deployment 11.0 / arm64) it falls each time with log:

Executed 1 test, with 0 failures (0 unexpected) in 0.017 (0.017) seconds
Test Suite 'License' started at 2022-05-16 11:44:35.799
Test Case '-[Test License]' started.
.../license_test.cpp:103: error: -[Test License] : Skipped
.../ios/GoogleTests.mm:158: error: -[Test License] : ((totalTestsRun) equal to (1)) failed: ("0") is not equal to ("1") - Expected to run a single test for filter "Test.License"
Test Case '-[Test License]' failed (0.002 seconds).
Test Suite 'Test' failed at 2022-05-16 11:44:35.802.
...
** TEST EXECUTE FAILED **
Testing started on 'iPhone X black'

Compiler and build system information:

-- [polly] Used toolchain: iOS 13.4 Deployment 11.0 / arm64 / clang / c++11 support
debug CMAKE_CURRENT_LIST_DIR = /Users/admin/dev/polly
-- The C compiler identification is AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032

The version of googletest is - v1.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant