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

Bugfix 206 #209

Merged
merged 8 commits into from
Jul 12, 2018
Merged

Bugfix 206 #209

merged 8 commits into from
Jul 12, 2018

Conversation

dschlaep
Copy link
Member

dschlaep added 5 commits July 9, 2018 14:42
…tain setups

- address issue #206:
```
In file included from googletest/googletest/src/gtest-all.cc:42:
googletest/googletest/src/gtest.cc:393:12: error: missing field 'owner_' initializer [-Werror,-Wmissing-field-initializers]
GTEST_API_ GTEST_DEFINE_STATIC_MUTEX_(g_linked_ptr_mutex);
```
- this appears to be a problem described here google/googletest#1521 which remains unsolved as of today

- another project on github addressed this issue temporarily (advancedtelematic/aktualizr#841) by checking out `googletest` one commit before this problem was introduced with commit google/googletest@87a4cdd, i.e, google/googletest@7888184
- addressing #206: both clang and gcc work (at least locally)
* CXX=clang++ make clean test test_run
* CXX=g++ make clean test test_run

- don't overwrite standard flags such as CFLAGS, etc.
- ignore errors when cleaning up (prefix commands with a hyphen)
- ignore errors arising from deprecated warnings (as c code under clang++) --> remove once #208 is fixed

- target `clean` is now a synonym of `cleaner`
- first target is now `bin`, i.e., calling `make` will now compile the executable

- updated `SW_Output_mock.c`
…codecov`

- we had no updated code coverage for the last five months...
@dschlaep dschlaep added this to the Code testing milestone Jul 11, 2018
@dschlaep dschlaep requested a review from CaitlinA July 11, 2018 12:15
@codecov
Copy link

codecov bot commented Jul 11, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@20cf67e). Click here to learn what that means.
The diff coverage is 1.09%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #209   +/-   ##
=========================================
  Coverage          ?   60.04%           
=========================================
  Files             ?       20           
  Lines             ?     3624           
  Branches          ?        0           
=========================================
  Hits              ?     2176           
  Misses            ?     1448           
  Partials          ?        0
Impacted Files Coverage Δ
SW_Output_mock.c 9.9% <1.09%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 20cf67e...94000a5. Read the comment docs.

dschlaep added 3 commits July 11, 2018 08:33
- we test with both `gnu` and `llvm` (clang) compilers on travis by setting the build option `compiler`
- this however only set the CC environmental variable; because we compile both with CC and CXX (for the unit tests), we need to set both
- previous commit (8db9fa4) didn't work: after the clang matrix expansion, the test build still uses g++ for CXX
--> switch project to cpp
@CaitlinA
Copy link
Member

I think your edits look code and issue #206 can be closed.

I still receive warning for using clanging so #208 should remain open.

@dschlaep dschlaep merged commit d90151f into master Jul 12, 2018
@dschlaep dschlaep deleted the bugfix_206 branch July 12, 2018 00:33
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

Successfully merging this pull request may close these issues.

2 participants