mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 07:30:54 +00:00
[RocksDB] fix build
Summary: forgot to include signal_test.cc Test Plan: make check Reviewers: sheki Reviewed By: sheki CC: leveldb Differential Revision: https://reviews.facebook.net/D10281
This commit is contained in:
parent
1255dcd446
commit
e0b60923ee
27
util/signal_test.cc
Normal file
27
util/signal_test.cc
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include "util/stack_trace.h"
|
||||
#include <assert.h>
|
||||
|
||||
void f0() {
|
||||
char *p = nullptr;
|
||||
*p = 10; /* SIGSEGV here!! */
|
||||
}
|
||||
|
||||
void f1() {
|
||||
f0();
|
||||
}
|
||||
|
||||
void f2() {
|
||||
f1();
|
||||
}
|
||||
|
||||
void f3() {
|
||||
f2();
|
||||
}
|
||||
|
||||
int main() {
|
||||
leveldb::InstallStackTraceHandler();
|
||||
|
||||
f3();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue