From: Eli Bendersky Date: Tue, 4 Feb 2020 14:21:28 +0000 (-0800) Subject: Move test file name to be included in distribution X-Git-Tag: v0.27~65 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83ad8a220d0fd7a183bf249ad8bbb681227dc266;p=pyelftools.git Move test file name to be included in distribution Fixes #260 --- diff --git a/test/test_pubtypes.py b/test/test_pubtypes.py index a0eb642..ed7c6a1 100644 --- a/test/test_pubtypes.py +++ b/test/test_pubtypes.py @@ -13,7 +13,7 @@ from elftools.elf.elffile import ELFFile class TestEmptyPubtypes(unittest.TestCase): def test_empty_pubtypes(self): test_dir = os.path.join('test', 'testfiles_for_unittests') - with open(os.path.join(test_dir, 'empty_pubtypes', 'main'), 'rb') as f: + with open(os.path.join(test_dir, 'empty_pubtypes', 'main.elf'), 'rb') as f: elf = ELFFile(f) # This test targets `ELFParseError` caused by buggy handling diff --git a/test/testfiles_for_unittests/empty_pubtypes/Makefile b/test/testfiles_for_unittests/empty_pubtypes/Makefile index 20decd4..c53964f 100644 --- a/test/testfiles_for_unittests/empty_pubtypes/Makefile +++ b/test/testfiles_for_unittests/empty_pubtypes/Makefile @@ -1,2 +1,2 @@ -main: -main: CFLAGS=-gpubnames -g -O0 +main.elf: main.c + gcc -gpubnames -g -O0 main.c -o main.elf diff --git a/test/testfiles_for_unittests/empty_pubtypes/main b/test/testfiles_for_unittests/empty_pubtypes/main deleted file mode 100755 index fc6c9b3..0000000 Binary files a/test/testfiles_for_unittests/empty_pubtypes/main and /dev/null differ diff --git a/test/testfiles_for_unittests/empty_pubtypes/main.elf b/test/testfiles_for_unittests/empty_pubtypes/main.elf new file mode 100755 index 0000000..9a3c2c1 Binary files /dev/null and b/test/testfiles_for_unittests/empty_pubtypes/main.elf differ