Commit 4eb74c4f authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

tests: allow empty expected files



An empty expected file is a handy way to seed the files
without creating merge conflicts.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 6c35ed68
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -334,7 +334,10 @@ try_again:
        g_assert(ret);
        g_assert_no_error(error);
        g_assert(exp_sdt.aml);
        g_assert(exp_sdt.aml_len);
        if (!exp_sdt.aml_len) {
            fprintf(stderr, "Warning! zero length expected file '%s'\n",
                    aml_file);
        }

        g_array_append_val(exp_tables, exp_sdt);
    }