mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-16 23:14:36 +00:00
e25159b4b9
* src/abg-writer.cc (do_indent): New function. (write_corpus&): Use do_indent. Don't forget to close the abi-instr tag. (write_type_decl): Use do_indent. Handle null decls pointers. Emit the id at the end of the element. (write_namespace_decl): Use do_indent. Handle null decls pointers. * tests/test-utils.{h,cc} (get_src_dir,get_build_dir): Constify the returned reference to string. (is_dir, ensure_dir_path_created, ensure_parent_dir_created): New function definitions. * tests/test-read-write.cc (main): Augment the test to serialize the corpus too.
22 lines
411 B
C++
22 lines
411 B
C++
// -*- Mode: C++ -*-
|
|
|
|
#ifndef __TEST_UTILS_H__
|
|
#define __TEST_UTILS_H__
|
|
|
|
#include <string>
|
|
|
|
namespace abigail
|
|
{
|
|
namespace tests
|
|
{
|
|
|
|
const std::string& get_src_dir();
|
|
const std::string& get_build_dir();
|
|
bool is_dir(const std::string&);
|
|
bool ensure_dir_path_created(const std::string&);
|
|
bool ensure_parent_dir_created(const std::string&);
|
|
|
|
}//end namespace tests
|
|
}//end namespace abigail
|
|
#endif //__TEST_UTILS_H__
|