Conditionalize the Rust support regression test

* 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>
This commit is contained in:
Dodji Seketeli 2019-01-24 11:06:57 +01:00
parent 6e9b2ae423
commit 4d40cc9986
2 changed files with 3 additions and 0 deletions

View 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}
};

View File

@ -21,6 +21,7 @@
#ifndef __TEST_UTILS_H__
#define __TEST_UTILS_H__
#include "config.h"
#include <string>
namespace abigail