Obsolete
/
libipc-old
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
libipc-old/tests/unit_02_usock-remove.c

26 lines
447 B
C

#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;
}
TEST_IPC_Q (usock_remove (ftr), EXIT_FAILURE);
return EXIT_SUCCESS;
}