From 45c251bb70615643c06d2cf7be3043e78e30a51c Mon Sep 17 00:00:00 2001 From: Drew Short Date: Fri, 8 Jan 2016 11:50:20 -0600 Subject: [PATCH] Fixing the C test to use the test images above this folder --- FFI-tests/ffi_test.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/FFI-tests/ffi_test.c b/FFI-tests/ffi_test.c index 3b9500d..cd540c2 100644 --- a/FFI-tests/ffi_test.c +++ b/FFI-tests/ffi_test.c @@ -18,13 +18,9 @@ int main() { uint64_t (*get_phash)(const char *); //test image locations - static const char largePathStr[] = u8"test_images/sample_01_large.jpg"; - static const char mediumPathStr[] = u8"test_images/sample_01_medium.jpg"; - static const char smallPathStr[] = u8"test_images/sample_01_small.jpg"; - - static const char image1PathStr[] = u8"test_images/sample_01_"; - static const char image2PathStr[] = u8"test_images/sample_02_"; - static const char image3PathStr[] = u8"test_images/sample_03_"; + static const char image1PathStr[] = u8"../test_images/sample_01_"; + static const char image2PathStr[] = u8"../test_images/sample_02_"; + static const char image3PathStr[] = u8"../test_images/sample_03_"; // Array of pointers to the base image paths to test //static const char *imagesSet[] = { image1PathStr, image2PathStr, image3PathStr }; @@ -43,11 +39,6 @@ int main() { // Image extension static const char imageExtensionStr[] = u8".jpg"; - // Pointers that the external function call need - const char *largePathPtr = &largePathStr[0]; - const char *mediumPathPtr = &mediumPathStr[0]; - const char *smallPathPtr = &smallPathStr[0]; - // Loading the external library lib = dlopen("./libpihash.so", RTLD_LAZY);