mirror of https://github.com/djcb/mu.git
tests: threads: Use struct tinfo in all tests
This commit is contained in:
parent
ab58307fea
commit
b7efa1e3e3
|
@ -34,6 +34,13 @@
|
||||||
#include "mu-query.h"
|
#include "mu-query.h"
|
||||||
#include "mu-str.h"
|
#include "mu-str.h"
|
||||||
|
|
||||||
|
struct _tinfo {
|
||||||
|
const char *threadpath;
|
||||||
|
const char *msgid;
|
||||||
|
const char *subject;
|
||||||
|
};
|
||||||
|
typedef struct _tinfo tinfo;
|
||||||
|
|
||||||
static gchar*
|
static gchar*
|
||||||
fill_database (const char *testdir)
|
fill_database (const char *testdir)
|
||||||
{
|
{
|
||||||
|
@ -87,11 +94,7 @@ test_mu_threads_01 (void)
|
||||||
MuMsgIter *iter;
|
MuMsgIter *iter;
|
||||||
unsigned u;
|
unsigned u;
|
||||||
|
|
||||||
struct {
|
const tinfo items [] = {
|
||||||
const char* threadpath;
|
|
||||||
const char *msgid;
|
|
||||||
const char* subject;
|
|
||||||
} items [] = {
|
|
||||||
{"0", "root0@msg.id", "root0"},
|
{"0", "root0@msg.id", "root0"},
|
||||||
{"0:0", "child0.0@msg.id", "Re: child 0.0"},
|
{"0:0", "child0.0@msg.id", "Re: child 0.0"},
|
||||||
{"0:1", "child0.1@msg.id", "Re: child 0.1"},
|
{"0:1", "child0.1@msg.id", "Re: child 0.1"},
|
||||||
|
@ -149,14 +152,6 @@ test_mu_threads_01 (void)
|
||||||
mu_msg_iter_destroy (iter);
|
mu_msg_iter_destroy (iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct _tinfo {
|
|
||||||
const char* threadpath;
|
|
||||||
const char *msgid;
|
|
||||||
const char* subject;
|
|
||||||
};
|
|
||||||
typedef struct _tinfo tinfo;
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_mu_threads_rogue (void)
|
test_mu_threads_rogue (void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue