diff options
author | Karel Zak | 2007-07-11 00:59:49 +0200 |
---|---|---|
committer | Karel Zak | 2007-07-11 00:59:49 +0200 |
commit | db0aaaa6a860e7a914ac8582c11f9d40c3164b25 (patch) | |
tree | 5e60ddaec2646649d0bbbf8d6863f99bb561af0c /tests/helpers | |
parent | tests: remove dependence on helpers/libpreload-time.so (diff) | |
download | kernel-qcow2-util-linux-db0aaaa6a860e7a914ac8582c11f9d40c3164b25.tar.gz kernel-qcow2-util-linux-db0aaaa6a860e7a914ac8582c11f9d40c3164b25.tar.xz kernel-qcow2-util-linux-db0aaaa6a860e7a914ac8582c11f9d40c3164b25.zip |
build-sys: remove libtool
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r-- | tests/helpers/Makefile.am | 6 | ||||
-rw-r--r-- | tests/helpers/libpreload-time.c | 26 |
2 files changed, 0 insertions, 32 deletions
diff --git a/tests/helpers/Makefile.am b/tests/helpers/Makefile.am index 6c514e7c7..b6f0557f4 100644 --- a/tests/helpers/Makefile.am +++ b/tests/helpers/Makefile.am @@ -3,9 +3,3 @@ include $(top_srcdir)/config/include-Makefile.am noinst_PROGRAMS = mnt_test_sysinfo mnt_test_sysinfo_SOURCES = mnt_test_sysinfo.c - -noinst_LTLIBRARIES = libpreload-time.la - -libpreload_time_la_SOURCES = libpreload-time.c -libpreload_time_la_LDFLAGS = -shared -rpath `pwd` -avoid-version - diff --git a/tests/helpers/libpreload-time.c b/tests/helpers/libpreload-time.c deleted file mode 100644 index e69795098..000000000 --- a/tests/helpers/libpreload-time.c +++ /dev/null @@ -1,26 +0,0 @@ - -#include <stdio.h> -#include <ctype.h> -#include <stdlib.h> -#include <time.h> -#include <sys/time.h> - -time_t -time(time_t *t) -{ - time_t tt = 0; - char *e = getenv("TEST_TIME"); - - if (e && isdigit((unsigned char) *e)) - tt = atol(e); - else { - struct timeval tv; - - if (gettimeofday(&tv, NULL) == 0) - tt = tv.tv_sec; - } - if (t) - *t = tt; - - return tt; -} |