This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-07-27 15:48:56 +02:00
|
|
|
#include "../src/ipc.h"
|
|
|
|
#include "../src/usocket.h"
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#define FILE_TO_REMOVE "/tmp/FILE_TO_REMOVE"
|
|
|
|
|
|
|
|
int main(int argc, char * argv[])
|
|
|
|
{
|
|
|
|
char * ftr = FILE_TO_REMOVE;
|
|
|
|
|
|
|
|
if (argc == 2) {
|
|
|
|
ftr = argv[1];
|
|
|
|
}
|
|
|
|
else if (argc > 2) {
|
|
|
|
fprintf (stderr, "usage: %s [file-to-remove]\n", argv[0]);
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
}
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
TEST_IPC_Q (usock_remove (ftr), EXIT_FAILURE);
|
|
|
|
|
|
|
|
return EXIT_SUCCESS;
|
2019-07-27 15:48:56 +02:00
|
|
|
}
|