size = 1024;
buf = yasm_xmalloc(size);
+
+ if (getenv("YASM_TEST_SUITE")) {
+ strcpy(buf, "./");
+ return buf;
+ }
+
while (getcwd(buf, size-1) == NULL) {
if (errno != ERANGE) {
yasm__fatal(N_("could not determine current working directory"));
/* add object and compile flag first */
cv8_add_sym_objname(info.debug_symline,
yasm__abspath(object->obj_filename));
- cv8_add_sym_compile(object, info.debug_symline,
- yasm__xstrdup(PACKAGE_NAME " " PACKAGE_INTVER "."
- PACKAGE_BUILD));
+ if (getenv("YASM_TEST_SUITE"))
+ cv8_add_sym_compile(object, info.debug_symline,
+ yasm__xstrdup("yasm HEAD"));
+ else
+ cv8_add_sym_compile(object, info.debug_symline,
+ yasm__xstrdup(PACKAGE_STRING));
/* then iterate through symbol table */
yasm_symtab_traverse(object->symtab, &info, cv_generate_sym);
cv8_set_symhead_end(head, yasm_section_bcs_last(info.debug_symline));
/* producer - assembler name */
abc->len += dwarf2_add_abbrev_attr(abbrev, DW_AT_producer, DW_FORM_string);
- dwarf2_append_str(debug_info, PACKAGE " " VERSION);
+ if (getenv("YASM_TEST_SUITE"))
+ dwarf2_append_str(debug_info, "yasm HEAD");
+ else
+ dwarf2_append_str(debug_info, PACKAGE_STRING);
/* language - no standard code for assembler, use MIPS as a substitute */
abc->len += dwarf2_add_abbrev_attr(abbrev, DW_AT_language, DW_FORM_data2);