xref: /libCEED/tests/t002-ceed.c (revision cb32e2e7f026784d97a57f1901677e9727def907)
1 /// @file
2 /// Test return of a CEED object full resource name
3 /// \test Test return of a CEED object full resource name
4 #include <string.h>
5 #include <ceed.h>
6 
7 int main(int argc, char **argv) {
8   Ceed ceed;
9   const char *resource;
10 
11   CeedInit(argv[1], &ceed);
12 
13   CeedGetResource(ceed, &resource);
14   if (strcmp(resource, argv[1]))
15     // LCOV_EXCL_START
16     return CeedError(ceed, 1, "Incorrect full resource name: %s != %s",
17                      resource, argv[1]);
18   // LCOV_EXCL_STOP
19 
20   CeedDestroy(&ceed);
21   return 0;
22 }
23