1. 19 2月, 2015 1 次提交
  2. 18 2月, 2015 5 次提交
  3. 14 2月, 2015 3 次提交
    • J
      build: fix unportable Makefile syntax · b9a0213c
      Jim Meyering 提交于
      Summary:
      * Makefile (dummy): Prefix this statement with "dummy := ",
      so that it no longer triggers a syntax error from GNU make 3.80
      and earlier.  Reported by nielsl in
      https://github.com/facebook/rocksdb/issues/509
      
      Test Plan: run make
      
      Reviewers: sdong, ljin, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D33429
      b9a0213c
    • I
      rocksdb: Fix scan-build 'Called C++ object pointer is null' and 'Dereference of null pointer' bugs · 4e4b8578
      Igor Sugak 提交于
      Summary:
      In the existing implementation of `ASSERT*`, test termination happens in `~Tester`, which is called when instance of `Tester` goes out of scope. This is the cause of many scan-build bugs.
      
      This diff changes `ASSERT*` to terminate the test immediately. Also added one suppression in `util/signal_test.cc`
      
      scan-build bugs
      before: http://home.fburl.com/~sugak/latest/index.html
      after: http://home.fburl.com/~sugak/latest2/index.html
      
      Test Plan:
      Modify some test to fail an assertion and make sure that `ASSERT*` terminated the test.
      
      Run `make analyze` and make sure no 'Called C++ object pointer is null' and 'Dereference of null pointer' bugs reported.
      
      Run tests and make sure no failing tests:
      ```lang=bash
      % make check
      % USE_CLANG=1 make check
      ```
      
      Reviewers: meyering, lgalanis, sdong, rven, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D33381
      4e4b8578
    • J
      build: remove unportable use of sed in favor of $(CXX)'s -MT · b3fd1622
      Jim Meyering 提交于
      Summary:
      The code being removed would invoke sed differently to work
      around a portability difference in how sed -i works (different
      on MacOS).  Yet performing a host-type-based ifdef fails when
      the tools installed do not match.  That sed use was solely to
      post-process the .d file.  Instead, generate the desired output
      directly, by using the compiler's -MT<FILE> option.
      * Makefile (%.d: %.cc): With the prior use of Makefile-ifdef'd
      sed, when building on MacOS with gnu sed, every run of this rule
      would fail with a sed usage error.  Also list each .d file as a
      dependent.
      
      Test Plan:
        Ensure that a selected .d file is the same as before both with
        g++ and with clang++.  However, note that the new .d files each
        contain a new reference to the .d file itself.
      
      Reviewers: sdong, ljin, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D33369
      b3fd1622
  4. 13 2月, 2015 3 次提交
  5. 12 2月, 2015 3 次提交
  6. 11 2月, 2015 5 次提交
  7. 10 2月, 2015 10 次提交
  8. 09 2月, 2015 3 次提交
  9. 07 2月, 2015 5 次提交
  10. 06 2月, 2015 2 次提交