Skip to content
Snippets Groups Projects

Draft: fix tests for log2_approx and log2_approx64

Merged Thomas Schlichter requested to merge fix_log2_approx_tests into develop
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • To skip the test, we use the gtest command line parameter "--gtest_filter" to filter out the unwanted test.
    This parameter is described as follows:
    
    --gtest_filter=POSITIVE_PATTERNS[-NEGATIVE_PATTERNS]
          Run only the tests whose name matches one of the positive patterns but
          none of the negative patterns. '?' matches any single character; '*'
          matches any substring; ':' separates two patterns.
@@ -14,4 +14,4 @@ add_executable(test_log2_approx test_log2_approx.cpp ../log2_approx.c)
target_link_libraries(test_log2_approx PRIVATE GTest::gtest LOG minimal_lib)
add_dependencies(tests test_log2_approx)
add_test(NAME test_log2_approx
COMMAND ./test_log2_approx)
COMMAND ./test_log2_approx --gtest_filter=-log2_approx.complete)
Loading