summaryrefslogtreecommitdiffstats
path: root/tests/test-lz4-list.py
diff options
context:
space:
mode:
authorgstedman <gabriel.stedman@zynstra.com>2019-05-16 14:12:00 (GMT)
committergabrielstedman <gabriel.stedman@zynstra.com>2019-05-16 19:53:29 (GMT)
commit81081f9b2d6e114b06f7a3eecc8e6a20bb88e035 (patch)
treeffb6d07b2c20d700b425cc0a38cc0aec8e7489bd /tests/test-lz4-list.py
parent98a86c8ef6ea3202f8cb52772144d0f744bd5c73 (diff)
downloadlz4-81081f9b2d6e114b06f7a3eecc8e6a20bb88e035.zip
lz4-81081f9b2d6e114b06f7a3eecc8e6a20bb88e035.tar.gz
lz4-81081f9b2d6e114b06f7a3eecc8e6a20bb88e035.tar.bz2
List mode improvements.
Improve formatting Include static assert Use UTIL_fseek to handle potential fseek limitation Be explicit when refusing to read from stdin Properly free dctx after use Include valgrind tests
Diffstat (limited to 'tests/test-lz4-list.py')
-rw-r--r--tests/test-lz4-list.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-lz4-list.py b/tests/test-lz4-list.py
index 4738e99..ce89757 100644
--- a/tests/test-lz4-list.py
+++ b/tests/test-lz4-list.py
@@ -8,9 +8,9 @@ import unittest
SIZES = [3, 11] # Always 2 sizes
MIB = 1048576
-LZ4 = os.getcwd() + "/../lz4"
+LZ4 = os.path.dirname(os.path.realpath(__file__)) + "/../lz4"
if not os.path.exists(LZ4):
- LZ4 = os.getcwd() + "/../programs/lz4"
+ LZ4 = os.path.dirname(os.path.realpath(__file__)) + "/../programs/lz4"
TEMP = tempfile.gettempdir()