| 3 |
* test_file_loader |
* test_file_loader |
| 4 |
* - tester for shared memory based file loader |
* - tester for shared memory based file loader |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
#include "file_loader.h" |
#include "file_loader.h" |
| 14 |
#include <unistd.h> |
#include <unistd.h> |
| 15 |
#include <sys/shm.h> |
#include <sys/shm.h> |
| 16 |
|
|
| 17 |
#define TRIE_DICT_SHM_FILE "~trie_dict_shm.dat" |
static const char TRIE_DICT_SHM_FILE[] = "~trie_dict_shm.dat"; |
| 18 |
|
|
| 19 |
const char *files[] = { |
const char *files[] = { |
| 20 |
"../data/welcome.txt", |
"../data/welcome.txt", |