diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-11 12:38:29 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-11 12:38:29 (EDT) |
commit | 4e44d721d99baefc08e659a6c10292a391a9993e (patch) | |
tree | 2cff243c04ea1a4e3b2cab6ef2572a2301edc546 /patches | |
parent | 57671fa175d4c857bbd8dec814879ee324be4f16 (diff) |
Use LD_PRELOAD for tests in patch.
Diffstat (limited to 'patches')
-rw-r--r-- | patches/01_properly-support-shared-library.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/patches/01_properly-support-shared-library.patch b/patches/01_properly-support-shared-library.patch index f7ec802..e583d8e 100644 --- a/patches/01_properly-support-shared-library.patch +++ b/patches/01_properly-support-shared-library.patch @@ -39,17 +39,17 @@ diff -Naur src.orig/Makefile src/Makefile check: test test: bzip2 @cat words1 -+ LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH \ ++ LD_PRELOAD=./libbz2.so.$(VERSION) \ ./bzip2 -1 < sample1.ref > sample1.rb2 -+ LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH \ ++ LD_PRELOAD=./libbz2.so.$(VERSION) \ ./bzip2 -2 < sample2.ref > sample2.rb2 -+ LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH \ ++ LD_PRELOAD=./libbz2.so.$(VERSION) \ ./bzip2 -3 < sample3.ref > sample3.rb2 -+ LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH \ ++ LD_PRELOAD=./libbz2.so.$(VERSION) \ ./bzip2 -d < sample1.bz2 > sample1.tst -+ LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH \ ++ LD_PRELOAD=./libbz2.so.$(VERSION) \ ./bzip2 -d < sample2.bz2 > sample2.tst -+ LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH \ ++ LD_PRELOAD=./libbz2.so.$(VERSION) \ ./bzip2 -ds < sample3.bz2 > sample3.tst cmp sample1.bz2 sample1.rb2 cmp sample2.bz2 sample2.rb2 |