Skip to content

Commit b234f65

Browse files
committed
Added a new fault injection test.
This test is intended to ensure leveldb properly detects and recovers from faults - specifically unwritten file data lost as a result of a system reset.
1 parent c4c38f9 commit b234f65

File tree

2 files changed

+546
-0
lines changed

2 files changed

+546
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ TESTS = \
4949
db_test \
5050
dbformat_test \
5151
env_test \
52+
fault_injection_test \
5253
filename_test \
5354
filter_block_test \
5455
hash_test \
@@ -155,6 +156,9 @@ dbformat_test: db/dbformat_test.o $(LIBOBJECTS) $(TESTHARNESS)
155156
env_test: util/env_test.o $(LIBOBJECTS) $(TESTHARNESS)
156157
$(CXX) $(LDFLAGS) util/env_test.o $(LIBOBJECTS) $(TESTHARNESS) -o $@ $(LIBS)
157158

159+
fault_injection_test: db/fault_injection_test.o $(LIBOBJECTS) $(TESTHARNESS)
160+
$(CXX) $(LDFLAGS) db/fault_injection_test.o $(LIBOBJECTS) $(TESTHARNESS) -o $@ $(LIBS)
161+
158162
filename_test: db/filename_test.o $(LIBOBJECTS) $(TESTHARNESS)
159163
$(CXX) $(LDFLAGS) db/filename_test.o $(LIBOBJECTS) $(TESTHARNESS) -o $@ $(LIBS)
160164

0 commit comments

Comments
 (0)