Conditionalize the Rust support regression test
authorDodji Seketeli <dodji@redhat.com>
Thu, 24 Jan 2019 10:06:57 +0000 (11:06 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 24 Jan 2019 10:06:57 +0000 (11:06 +0100)
* tests/test-diff-dwarf.cc: Run the rust support regression test
only if we support Rust on the platform.
* tests/test-utils.h: Include config.h.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tests/test-diff-dwarf.cc
tests/test-utils.h

index c1896037b9ea2ec51187671c6f743a8e2d6ba1cb..016a250efe787fa6d1603690a60b0c7510496c04 100644 (file)
@@ -344,12 +344,14 @@ InOutSpec in_out_specs[] =
     "data/test-diff-dwarf/test45-anon-dm-change-report-0.txt",
     "output/test-diff-dwarf/test45-anon-dm-change-report-0.txt"
   },
+#ifdef HAVE_DW_LANG_Rust_enumerator
   {
     "data/test-diff-dwarf/test46-rust-libone.so",
     "data/test-diff-dwarf/test46-rust-libtwo.so",
     "data/test-diff-dwarf/test46-rust-report-0.txt",
     "output/test-diff-dwarf/test46-rust-report-0.txt"
   },
+#endif
   // This should be the last entry
   {NULL, NULL, NULL, NULL}
 };
index 410566d3e9b993f5ecef3a0275148d1b828c4892..7b9371f040ddb64279aba369dd1a2e2de177214f 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef __TEST_UTILS_H__
 #define __TEST_UTILS_H__
 
+#include "config.h"
 #include <string>
 
 namespace abigail