Skip to content

Commit 1051677

Browse files
authored
Merge pull request #541 from joelhock/remove-vestigial-fail-pre-init-calls
remove vestigial FAIL_PRE_INIT_CALLS code
2 parents 2ba77bd + 5e69e72 commit 1051677

4 files changed

Lines changed: 1 addition & 103 deletions

File tree

src/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@
9595
# - avoid that the faketime wrapper complains when running within a
9696
# libfaketime environment
9797
#
98-
# FAIL_PRE_INIT_CALLS
99-
# - If the time is queried before the library was initialised, let the
100-
# call fail instead of trying to initialise on-the-fly. This fixes /
101-
# works around hangs that were seen with address sanitizer.
102-
#
10398
# * Compilation addition: second libMT target added for building the pthread-
10499
# enabled library as a separate library
105100
#

test/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ timetest: ${OBJ}
2929
shm_layout_test: shm_layout_test.c ../src/faketime_common.h
3030
${CC} -o $@ ${CFLAGS} $<
3131

32-
test: timetest functest libmallocintercept.so
32+
test: timetest functest
3333
@echo
3434
@./test.sh
3535

@@ -43,9 +43,6 @@ functest:
4343
randomtest: repeat_random
4444
./randomtest.sh
4545

46-
libmallocintercept.so: libmallocintercept.c
47-
${CC} -shared -o $@ -fpic ${CFLAGS} $<
48-
4946
# ensure our variadic argument unpacking/repacking works as expected
5047
confirm_variadic_promotion: variadic_promotion
5148
./variadic_promotion

test/libmallocintercept.c

Lines changed: 0 additions & 85 deletions
This file was deleted.

test/test.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22

33
FTPL="${FAKETIME_TESTLIB:-../src/libfaketime.so.1}"
4-
MALLOC_INTERCEPT=./libmallocintercept.so
54

65
if [ -f /etc/faketimerc ] ; then
76
echo "Running the test program with your system-wide default in /etc/faketimerc"
@@ -66,14 +65,6 @@ echo
6665
echo "============================================================================="
6766
echo
6867

69-
echo "Running the test program with malloc interception"
70-
echo "\$ LD_PRELOAD=./libmallocintercept.so:$FTPL ./timetest"
71-
LD_PRELOAD="./libmallocintercept.so:$FTPL" ./timetest
72-
echo
73-
74-
echo "============================================================================="
75-
echo
76-
7768
echo "@2005-03-29 14:14:14" > .faketimerc-for-test
7869
echo "Running the test program with malloc interception and file faketimerc"
7970
echo "\$ FAKETIME_NO_CACHE=1 FAKETIME_TIMESTAMP_FILE=.faketimerc-for-test LD_PRELOAD=./libmallocintercept.so:$FTPL ./timetest"

0 commit comments

Comments
 (0)