Fix: test elf: handle NULL debug file
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 31 Aug 2015 21:27:39 +0000 (17:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 31 Aug 2015 22:27:42 +0000 (18:27 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/ust-elf/prog.c

index 5090bcf75da26912f4972e86a606c581a8a79f4a..85b9c3474b7edcafb57ce709bff4d32aa674b5b6 100644 (file)
@@ -103,7 +103,7 @@ void test_elf(const char *test_dir, const char *arch, uint64_t exp_memsz,
                                        &has_debug_link);
        ok(ret == 0, "lttng_ust_elf_get_debug_link returned successfully");
        ok(has_debug_link == 1, "debug link marked as found");
-       ok(strcmp(dbg_file, DBG_FILE) == 0,
+       ok(dbg_file && strcmp(dbg_file, DBG_FILE) == 0,
                "debug link filename - expected: %s, got: %s",
                DBG_FILE, dbg_file);
        ok(crc == exp_crc,
This page took 0.026039 seconds and 4 git commands to generate.